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

How to make humanoid Jumped event longer???

How can I make the gravity of a single object in workspace change?

-- set gravitational pull to 0
script.Parent.BodyForce.force = Vector3.new(0, game.Workspace.Gravity, 0) * script.Parent:GetMass() --Body Force doesn;t work anymore sadily so how can I do this?

http://wiki.roblox.com/index.php?title=Gravity

Mos tof the stuff here is depreciated, so help please?

2 answers

Humanoid.JumpPower!

These can be used for non-players:

Experiment with these

(Scroll down to Inherited Classes)

If you insert a BodyThrust and set the Y value somehow proportional to the Mass, it will counteract gravity.

Otherwise, get admin commands and try the setgrav command and see what gets added to your character!

1 comment

0

Try Humanoid.JumpPower instead of my original answer

This is an example script for 1 part to negate gravity.

local BodyForce = Instance.new("BodyForce") -- makes a force useful for this 
BodyForce.force = Vector3.new(0, game.Workspace.Gravity, 0) * script.Parent:GetMass() -- makes BodyForce exert force equal to negative gravity * the weight of the part 
BodyForce.Parent = script.Parent

Add each part in a models mass to get the total mass and place the script in the root part or something.

As for deprecation; tested my self and works..

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