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

How do I make it so every second, your jump power increases?

Asked by 2 years ago

If you could help that would be amazing!

1 answer

Log in to vote
1
Answered by 2 years ago
Edited 2 years ago

Use a while loop with a wait() of 1 second, and with each iteration, increase the jump power of the Humanoid.

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")

while true do
    Humanoid.JumpPower += 5
    task.wait(1)
end

As @T3_MasterGamer mentioned, it is better to use task.wait as it is slightly faster and will not throttle either.

1
It is recommended to use task.wait() instead of wait() T3_MasterGamer 2189 — 2y
1
Because task.wait() is slightly faster than wait() T3_MasterGamer 2189 — 2y
Ad

Answer this question