How to Jump Multiple times instead of Just 1 time in Roblox Studio!

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • Today I'm showing on how to jump multiple times instead of just 1 time in Roblox Studio!
    scripts
    In the comment section due to some issues
    sorry!

Комментарии • 2

  • @lilwasooq
    @lilwasooq 2 месяца назад

    YOO THX HELPED ME ALOT

  • @exoxrs
    @exoxrs  2 месяца назад +2

    -scripts-
    local MaxJumps = 2
    local JumpCooldown = 0.2
    ----------------------------------------- Settings
    local UIS = game:GetService("UserInputService")
    local Player = game.Players.LocalPlayer
    local Char = Player.Character or Player.CharacterAdded:Wait()
    local Humanoid = Char:WaitForChild("Humanoid")
    local NumJumps = 0
    local canjump = false
    Humanoid.StateChanged:Connect(function(oldstate, newstate)
    if Enum.HumanoidStateType.Landed == newstate then
    NumJumps = 0
    canjump = false
    elseif Enum.HumanoidStateType.Freefall == newstate then
    wait(JumpCooldown)
    canjump = true
    elseif Enum.HumanoidStateType.Jumping == newstate then
    canjump = false
    NumJumps += 1
    end
    end)
    UIS.JumpRequest:Connect(function()
    if canjump and NumJumps < MaxJumps then
    Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
    end
    end)