How do i make my character in my game follow a path like in temple run

im making a simple game where a ball has to jump threw a hoop and i want the ball (which is the player) to stay on a path so that if the ball hits an object it wont go out of bounds of the road. any help would be gladly appreciated!

Hi!
Make the ball move relative to the transform that it should move on.

Example: If you want the player to move relative to the path, put the player inside the path and move them that way. So if you had a boat, and the boat was moving and you didn’t want the player to fall off, you’d put the player inside the boat transform so he moves with it and relative to it.