CFrame Body Movers

So I have this cargo ship model, in which I have a CFrame script attached to it. However, when a player is on the ship, they glitch off the boat as it moves. Here is the script:

for i = 0,100,.1 do
      script.Parent:TranslateBy(Vector3.new(0,0,-2))
	      wait()
		 script.Parent:TranslateBy(Vector3.new(0,0,-2))
	      wait()
		 script.Parent:TranslateBy(Vector3.new(0,0,-2))
      wait()
end

I heard that I have to use BodyMovers or something? But I don’t really know what that is, and how to use it.
How would I fix this, and make it where the player doesn’t glitch off the boat, and moves with it smoothly? Please respond in the most simplest terms, as I am not that familiar with scripting.

You should use BodyVelocity:

If this is still unclear to you, read this article:

1 Like