Roblox Double Jump Script (Clean Cooldown & Reset)
Lets players jump a second time mid-air using Roblox's JumpRequest event (works on PC, mobile, and controller).
-- LocalScript in StarterCharacterScripts
local UserInputService = game:GetService("UserInputService")
local character = script.Parent
local humanoid = character:WaitForChild("Humanoid") :: Humanoid
local MAX_JUMPS = 2
local AIR_DELAY = 0.18
local jumpsUsed = 0
local canAirJump = false
humanoid.StateChanged:Connect(function(_, newState)
if newState == Enum.HumanoidStateType.Landed then
jumpsUsed = 0
canAirJump = false
elseif newState == Enum.HumanoidStateType.Freefall then
task.delay(AIR_DELAY, function()
canAirJump = true
end)
end
end)
UserInputService.JumpRequest:Connect(function()
if humanoid.Health <= 0 then return end
if humanoid:GetState() == Enum.HumanoidStateType.Freefall and canAirJump and jumpsUsed < MAX_JUMPS - 1 then
jumpsUsed += 1
canAirJump = false
humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end
end)How to install in Studio
- Open StarterPlayer > StarterCharacterScripts in Explorer.
- Insert a LocalScript named DoubleJump.
- Paste the code above and press Play to test jumping twice mid-air.
Tips & customization
- Set MAX_JUMPS = 3 to turn this into a triple jump ability.
- Trigger a sound or ParticleEmitter burst inside JumpRequest for crisp game feel.
Common questions.
Does this double jump work on mobile?
Yes! UserInputService.JumpRequest fires automatically for Spacebar, mobile Jump button, and gamepad A.
Why is there a short AIR_DELAY?
The 0.18s delay prevents the initial ground jump from accidentally consuming your air jump on the same press.
More free Luau scripts.
Shift-to-Sprint Script
Hold Left Shift to sprint smoothly with a subtle camera FieldOfView boost and clean speed reset on release.
Kill Brick Script
Instead of copying 100 scripts into 100 lava bricks, tag any part 'KillBrick' and let one clean server script handle all of them.
Round System Script
A clean server loop that runs Intermission -> Active Round -> Winner announcement and updates a shared Status StringValue for your HUD.
Pet Follow Script
Makes equipped pets glide smoothly behind the player's shoulder with a lively sine-wave hover and zero physics jitter.
Skip manual wiring.
Let Revix code & playtest it.
Start building freeFree to start. No card needed.

