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

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

If you could help that would be amazing!

1 answer

✓ Accepted answer

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.

2 comments

1

It is recommended to use task.wait() instead of wait()

1

Because task.wait() is slightly faster than wait()

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