Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

BodyPositions and their speed

Asked by 10 years ago

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

Log in to vote
2
Answered by
jobro13 980 Moderation Voter
10 years ago

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!

0
Does not work, I need it to stop at the destination, not keep moving. FromLegoUniverse 264 — 10y
0
Nvm, did more research. That will work. FromLegoUniverse 264 — 10y
Ad

Answer this question