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

bodyvelocity won't move part?

Asked by 4 years ago

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
0
dont give my stuff negative seethis12_UGLY -54 — 4y
0
im warning you seethis12_UGLY -54 — 4y
0
1 - Velocity is a vector3 value and 2 - The part has to be unanchored. bostaffmanbulgaria1 89 — 4y
0
WHAAAAAAAAAAAAT seethis12_UGLY -54 — 4y
View all comments (2 more)
0
still not working seethis12_UGLY -54 — 4y
0
Your Object cannot move along with the force you need to give it a velocity with a Vector3 value Agentgilspy 0 — 4y

1 answer

Log in to vote
1
Answered by
imKirda 4491 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

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.

Ad

Answer this question