My trains repeatedly stops for a few seconds and keeps going

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)

Are you sure it’s a BodyVelocity? It looks more like a Velocity of the Part the script is in.
The name of the video is ConveyorScript?

This may also be a NetworkOwnership issue.

Yes I’m sure. The script works with no problem on a standard baseplate. So it must be a NetworkOwnership issue.

1 Like

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?

There isn’t any terrain. I made the new map on a standard baseplate.

3 Likes

UPDATE: I found out it was a free model virus. I removed it and it worked fine now!

alright im gonna lock this
edit: nvm i cant lock somebody help me do this

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.