AI car Issue!

Hello, I’m building a racing car game and I’m using waypoints and the seeksteer.js script to make the AI cars move towards the waypoints that i have made on the track, but the car is following only the first few waypoints and then it returns back sometimes and other times it behaves in an unexpected manner. Any siggestions to where or what I can do to solve this issue?

I think I tried that script from the wiki awhile ago and it worked ok.

Perhaps rename all waypoints clearly to make sure nobody is double counted, and they are all in the right order. name them wpt1, wpt2… in the order they are to be followed.

Also lay them out on a flat place to make sure its not just the car doesnt have the power to make it uphill.