How would I position the player anywhere on the rail?

How do I make the character jump on the rail without teleporting it all the way to the beginning of it, and instead having it wherever it jumped

for example the player jumps in the middle, it teleports the player to the back of it and moves it forward (by moving it forward i mean moving it forward instantly)


(not really the middle in this example)