How Do I Make A Model Move Vertically At A Constant Velocity?

Hello. I am refurbishing an old space game of mine. When the ship docks in the space station, it is pushed up using a set of pistons. Currently, I have a for loop that moves the pistons incrementally, while also using SetPrimaryPartCFrame() on the ship model. Is there a better way to do this? I feel like there has to be a better way to move a (preferably anchored) model at a linear pace, and have it stop at a certain point.

Note: The ship will have passengers in it, so it can’t really be done locally, and I would like to avoid using teleportation/model moving.

To clarify: I am asking how to make a (preferably anchored) model move upwards at a constant velocity until it reaches a specified point.

1 Like

I would avoid using :SetPrimaryPartCFrame() as there are floating point errors or something like that. Those will cause your item to become misaligned or distorted after being used after a long amount of time.

You could try checking out VectorForces here:

Or, you could try LineForces which are here: