On the most fundamental level:
- check the inclination of the spline with dot product
- accumulate this value - that’s the speed
- use speed to progress through a spline
You’ll need to add friction as this preserves energy as perfectly as frame time allows it. And input. And a gazillion other things that makes it a game.