How does a Rollercoaster Work?

Mainly, a rollercoaster works off of momentum and gravity. Another thing that makes it move along is the chains that guide the cars along the track. A rollercoaster is just a constant flow of potenial and kinetic energy.