0 views0 copies0 likes
Double Jump Controller for Platformers
Universal script
Copy it, then test it in your own Studio place.
Script code
25 lines · 1.0 KBlocal Input = game:GetService("UserInputService")local player = game:GetService("Players").LocalPlayerlocal humanoid, stateConnectionlocal firstJump, spent = 0, falselocal function bind(character) if stateConnection then stateConnection:Disconnect() end humanoid = character:WaitForChild("Humanoid") firstJump, spent = 0, false stateConnection = humanoid.StateChanged:Connect(function(_, state) if state == Enum.HumanoidStateType.Jumping and not spent then firstJump = os.clock() elseif state == Enum.HumanoidStateType.Landed or state == Enum.HumanoidStateType.Running then firstJump, spent = 0, false end-- …open Get script for the full sourceAbout this script
Drop this LocalScript into StarterPlayerScripts to give players one extra airborne jump in your platformer. It listens to Roblox's jump request, so the input comes through the built-in jump control on desktop and mobile. Leaving the ground from a normal jump arms the extra boost after a short delay, and landing resets it. Test tapping twice, running off a ledge and resetting midair.
Log in to leave a comment.
No comments yet
Be the first to share your thoughts!
Comments
Share what works, ask questions, or report an issue.