Categories > Exploiting > Scripts >
[Help] How do I toggle Inf Jump?
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)
I play minecraft and sometimes roblox with cheats
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)
Cancel
Post
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)
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post