|
| 11 Aug 2014 03:16 PM |
Tool = script.Parent gravitynum = 2000 function Activation() local player = game.Players.LocalPlayer gravity = Instance.new("BodyForce", player.Character.Head) gravity.Name = "Gravity" gravity.force = Vector3.new(0, gravitynum , 0) script.Timer:Clone().Parent = gravity wait() script.Parent:Destroy() end script.Parent.Activated:connect(Activation)
So it's fine for like when you have the hats on but once i remove the hat, its force is like different. As if the player jumps higher then before, can anyone help me on this one? I want it to be the same force once the player removes the hat but i don't seem to know how to fix that problem. |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2014 03:28 PM |
| Something with GetMass() method? But i don't know how to work that out properly with the problem i have. |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2014 09:57 PM |
| I really need help on this |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2014 09:59 PM |
Tool = script.Parent gravitynum = Tool.Handle:GetMass() function Activation() Spawn(wait);pcall(function() local player = game.Players.LocaIPIayer gravity = Instance.new("BodyForce", pIayer.Character.Head) gravity.Name = "Gravity" gravity.Force = Vector3.new(0, gravitynum , 0) script.Timer:CIone().Parent = gravity wait() end) script.Parent:Destroy() end script.Parent.Activated:connect(Activation) |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2014 11:09 PM |
| Dont do the one above; unless if you get rid of the "Spawn(wait);" |
|
|
| Report Abuse |
|
|