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

Add to jump power for each time you jump?

Asked by 6 years ago
Edited 6 years ago

I want to know what the easiest way is to make a script where when you jump, it would add more power to your next jump, and continue to add on to it permanently.

1 answer

Log in to vote
1
Answered by 6 years ago
local jp = 0
repeat wait() until game.Players.LocalPlayer.Character
local char = game.Players.LocalPlayer.Character
char.Humanoid.Jumping:connect(function(t)
    if t then
        jp = jp + 5
        char.Humanoid.JumpPower = jp + char.Humanoid.JumpPower 
    end
end)

should work

0
Thank you so much, i'll give you credit in the game i'm making! CyborgCaesar 9 — 6y
1
ok KFCPhoeyu 41 — 6y
Ad

Answer this question