Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

BodyPositions and their speed

Is there any way to make it so they move at a constant speed? If not, any bodyobjects I can use to help me where a CFrame position destination is available?

1 answer

✓ Accepted answer

Yup. BodyVelocity! Just set the velocityproperty of it to the speed vector. So, for instance, if you say

local bv = Instance.new("BodyVelocity", game.Workspace.PartToMove)
bv.velocity = Vector3.new(20,0,0)

That will start moving the body to that direction at a constant speed. Exactly what you need!

2 comments

0

Does not work, I need it to stop at the destination, not keep moving.

0

Nvm, did more research. That will work.

This discussion is preserved as it was. New answers, comments, and votes are closed.