Who pays when a parked car is hit?

The driver of the car that was driving when the accident occured. The owner of the parked car should not be responsible unless the car was parked in an illegal place or position.