How to Jump when still in the air

How exactly would I make it so I can Jump even if I’m still in the air. So I can Jump and continue to move up when I jump but gravity still pulls me down. Think of the bird from Flappy Birds.

1 Like

This video should help Roblox Studio Tutorial: How to Add Double Jumping - YouTube

This is what I want but how could i Get it so you can jump indefinitely

Are you using humanoids? You can set the state of humanoids to jumping anytime, and they will jump, even in the air!

humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
2 Likes

You can use UserInputService to check if the player sent a jumpRequest then do “if Humanoid:GetState() == Enum.HumanoidStateType.Freefall then Humanoid:ChangeState(Enum.HumanoidStateType.Jumping) end” you can read about “double jumping” here Double Jumping just remove the check to see if they can doubleJump again since you want them to keep jumping more than once after they already did

That’s part of a double jump script I’m using but i want to be able to jump Indefinitely

Script link [Tech with Mike - Double Jump]

1 Like

Local script in StarterCharacterScripts:

local UserInputService = game:GetService("UserInputService")
local humanoid = script.Parent:WaitForChild("Humanoid")

function onJumpRequest()
      humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end

UserInputService.JumpRequest:connect(onJumpRequest)
1 Like