How do theme park rides work?

A chain pulls the car to the top of the hill then gravity takes the rest. A chain pulls the car to the top of the hill then gravity takes the rest.