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

bodyvelocity won't move part?

my bodyvelocity will spawn inside part, but wont go anywhere WHAT IS WRONG!

local bv = Instance.new("BodyVelocity", script.Parent)

bv.MaxForce =  Vector3.new(0,500,0)
bv.Velocity = 0

6 comments

0

dont give my stuff negative

0

im warning you

0

1 - Velocity is a vector3 value and 2 - The part has to be unanchored.

0

WHAAAAAAAAAAAAT

0

still not working

0

Your Object cannot move along with the force you need to give it a velocity with a Vector3 value

1 answer

First of all check if it is not being run by local script, it won't work then, second check if the part is not anchored, third you have problem in the code:

local bv = Instance.new("BodyVelocity", script.Parent)
 
bv.MaxForce =  Vector3.new(0,500,0)
-- bv.Velocity = 0 -- NO

bv.Velocity = Vector3.new(1,2,3) -- yes

The force might be too small, also if you are moving it to the X side then it will not move as the force is 0, i reccomend setting the force to larger number otherwise if the part has larger size then it will just fall, so i reccomend setting it to:

-- if just Y then

bv.MaxForce = Vector3.new(0, 999999, 0) -- it matters what are you doing so you can adjust the number but if it is too small then it will fall

-- and for other sides too

bv.MaxForce = Vector3.new(9999,9999,999) -- something like this

Hope it helps. If nothing helps then try redoing the thing, sometimes it helps.

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