How to attach a player to a moving object

Hello!! I want to do exactly the same! I really want to make a roller coaster, to get on a vehicle and look around following a spline. Have you got it?