Roblox double jump script
Players press jump again in the air for a second jump, on any device.
Where it goes
- 1In the Explorer, open StarterPlayer, hover over StarterCharacterScripts, press + and choose LocalScript.
- 2Delete what's in it, paste this in and press Play.
- 3Jump, then press jump again in the air.
-- From forja.us/tools/roblox-scripts/double-jump-- Press jump again in the air to jump a second time.local UserInputService = game:GetService("UserInputService")local character = script.Parentlocal humanoid = character:WaitForChild("Humanoid")local canDoubleJump = falselocal usedDoubleJump = falsehumanoid.StateChanged:Connect(function(_, newState) if newState == Enum.HumanoidStateType.Landed then canDoubleJump = false usedDoubleJump = false elseif newState == Enum.HumanoidStateType.Freefall then -- A short wait, so holding the jump button doesn't use it up at once. task.wait(0.2) if humanoid:GetState() == Enum.HumanoidStateType.Freefall then canDoubleJump = true end endend)UserInputService.JumpRequest:Connect(function() if canDoubleJump and not usedDoubleJump then usedDoubleJump = true humanoid:ChangeState(Enum.HumanoidStateType.Jumping) endend)How it works
StateChangedsays when the character starts falling and when it lands.JumpRequestruns on every jump press, on a keyboard, a phone or a controller.ChangeState(Jumping)makes the character jump again in mid-air.usedDoubleJumpstops a third one until they land.
Make it yours
- Triple jump
- Replace
usedDoubleJumpwith a number, add 1 at each jump, and stop at 2.
Maps to try it on: low poly maps
Start from a finished map, and your scripts have a game to run in.
More free Roblox scripts
Roblox kill brick scriptRoblox leaderboard scriptRoblox save data scriptRoblox sprint scriptRoblox teleport scriptRoblox obby checkpoint scriptRoblox coin pickup scriptRoblox day and night cycle scriptRoblox game pass scriptRoblox developer product scriptRoblox door scriptRoblox tool giver scriptRoblox round system scriptRoblox background music scriptRoblox speed pad scriptRoblox jump pad scriptRoblox VIP door scriptRoblox daily reward scriptRoblox NPC dialogue scriptRoblox pet follow scriptRoblox gun scriptRoblox admin commands scriptRoblox tycoon dropper scriptRoblox shop GUI script

