Categories > Exploiting > Scripts >

[Help] How do I toggle Inf Jump?

OwlGuru

Gaming LV

Posts: 25

Threads: 15

Joined: Sep, 2021

Reputation: 0

Posted

Hello, I am using materiallua ui library and I can't seem to understand how to make a toggleable infinite jump. This is my code right now.

but the toggle off part doesn't work. I tried using seated and that didn't work too.

local InfiniteJumpEnabled;
PlayerPage.Toggle({
    Text = "Infinite Jump",
    Callback = function(value)
        InfiniteJumpEnabled = value
    end,
    Enabled = false
})

local Player = game:GetService("Players").LocalPlayer
game:GetService("UserInputService").JumpRequest:Connect(function()
     if InfiniteJumpEnabled then
         Player.Character:WaitForChild("Humanoid"):ChangeState("Jumping")
     else
        Player.Character:WaitForChild("Humanoid"):ChangeState("Standing")
     end
end)

 

  • 0

I play minecraft and sometimes roblox with cheats

Posts: 2

Threads: 1

Joined: Jun, 2022

Reputation: 0

Replied

local InfiniteJumpEnabled = false;
PlayerPage.Toggle({
    Text = "Infinite Jump",
    Callback = function()
        InfiniteJumpEnabled = not InfiniteJumpEnabled 
    end,
    Enabled = false
}) local Player = game:GetService("Players").LocalPlayer game:GetService("UserInputService").JumpRequest:Connect(function() if InfiniteJumpEnabled then Player.Character:WaitForChild("Humanoid"):ChangeState("Jumping") else Player.Character:WaitForChild("Humanoid"):ChangeState("Standing") end end)
  • 0

Posts: 16

Threads: 6

Joined: Aug, 2021

Reputation: 0

Replied

looked in infinite yield source and little remaked it:

local InfiniteJumpEnabled;
PlayerPage.Toggle({
    Text = "Infinite Jump",
    Callback = function(value)
        InfiniteJumpEnabled = value
    end,
    Enabled = false
})

local Player = game:GetService("Players").LocalPlayer
local mouse = Player:GetMouse()
mouse.KeyDown:Connect(function(key)
if key==' ' and InfiniteJumpEnabled then
Player.Character:FindFirstChildOfClass("Humanoid"):ChangeState(3)
end
end)
  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )