Moving platform

I’m trying to make a moving platform that follows a path. I want it to go to check points, stop at them for a few seconds, and then move onto the next checkpoint. Currently I only have it moving back and forth. How do I make it so that it follows a path and stop at checkpoints?

1 Like

You could have a table of checkpoints and then just tween it to successive checkpoints.

This video will help you learn how to do what your asking for

1 Like

I got an error for line 51 which is local magnitude = (positions[nextI] - positions[i]).Magnitude. The error says ServerScriptService.Paths:51: attempt to perform arithmetic (sub) on nil and Vector3
What’s wrong with it?

positions[nextI] or positions[i] is equal to nil

i cant tell you why without seeing what you have done but if you follow the video correctly you should not have any errors