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

Can you help me figure out why BodyVelocity.Velocity = Vector3.new (0,any number,0) doesn't work?

Asked by 9 years ago

It works for the X and X axes , and I'm perplexed.

0
Script? ISellCows 2 — 9y
0
it works for the X and X axes lmao DragonODeath 50 — 9y
0
Make sure anchored is false Hero_ic 502 — 9y

2 answers

Log in to vote
1
Answered by 9 years ago

This is most likely because the gravity is stronger than your BodyVelocity. This script can be used to fix:

BodyVelocity.MaxForce = Vector3.new(NUMBER, NUMBER*(Part:GetMass()*196.2), NUMBER)
Ad
Log in to vote
0
Answered by 9 years ago

I think the problem here is that BodyVelocity.MaxForce.Y is too low for the object you are trying to move, especially since it works in the X and Z directions.

Roblox has a g constant of 196.2 studs/s^2, and the MaxForce in the Y direction defaults to 4000, so if the mass of the object you're trying to move is greater than 20 or so, a force of 4000 is not enough to overcome the force of gravity.

(If it isn't this, then I have no idea.)

Answer this question