Okay I really don't under stand what you what.
show I would like to ask you some questions to better understand what you need.
1: What you need it for/ what kind of game are you making?
2: is this for a playable character or NPCs?
3: do you need it to follow in a certain path continuously or do you need it to stay in a straight line continuously?