Start building

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).

Type: LocalScriptExplorer: StarterPlayer > StarterCharacterScriptsLevel: Beginner
LocalScriptStarterPlayer > StarterCharacterScripts
-- 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

  1. Open StarterPlayer > StarterCharacterScripts in Explorer.
  2. Insert a LocalScript named DoubleJump.
  3. 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.

All 16 scripts

Skip manual wiring.
Let Revix code & playtest it.

Start building free

Free to start. No card needed.