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
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
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.
6 comments
dont give my stuff negative
im warning you
1 - Velocity is a vector3 value and 2 - The part has to be unanchored.
WHAAAAAAAAAAAAT
still not working
Your Object cannot move along with the force you need to give it a velocity with a Vector3 value