Hello. I was developing a summer update for my games until I realized my trains repeatedly stops for a few seconds before it keeps going. This is happening since the map overhaul. I tried to find solutions but couldn’t find any.
Video:
Script to make trains move: script
By the way, I have a BodyVelocity in the model to make the script work.
(ignore trains crashing, its the weird collision hitbox on the hill meshes)
You say the trains worked fine before you changed your map? if thats the case, look at the map for the issue… is it new terrain? is the track sitting within the terrain somewhere, rather than on top?
You don’t need to lock it. You’ve already posted the Solution so unless someone is searching for it to help with their train stopping issue nobody else is going to continue posting here.