Categories > Exploiting > Scripts >
inf jump toggle script in rayfield ui?
Posted
So I was wondering how i could make the toggle for a infinite jump script in rayfield ui?
Cancel
Post
Replied
too lazy to go and update this code, i guess you can use this tho (it sucks but it works sooo idk)
getgenv().infJump = arg
_G.infinjump = not _G.infinjum
if getgenv().infJump == false then
_G.infinjump = false
else
_G.infinjump = true
end
if not getgenv().iIIIiIIIIIIiiiIIIII then
if _G.infinJumpStarted == nil then
_G.infinJumpStarted = true
local plr = game:GetService('Players').LocalPlayer
local m = plr:GetMouse()
m.KeyDown:connect(function(k)
if _G.infinjump then
if k:byte() == 32 then
humanoid = game:GetService'Players'.LocalPlayer.Character:FindFirstChildOfClass('Humanoid')
humanoid:ChangeState('Jumping')
wait()
humanoid:ChangeState('Seated')
end
getgenv().iIIIiIIIIIIiiiIIIII = true
end
end)
end
end
Cancel
Post
https://cdn.discordapp.com/attachments/1147631284772937819/1150957497524428890/Tnwc9wP.png
Replied
Update I found this:
--Toggles the infinite jump between on or off on every script run
_G.infinjump = not _G.infinjump
if _G.infinJumpStarted == nil then
--Ensures this only runs once to save resources
_G.infinJumpStarted = true
--Notifies readiness
game.StarterGui:SetCore("SendNotification", {Title="Youtube Hub"; Text="Infinite Jump Activated!"; Duration=5;})
--The actual infinite jump
local plr = game:GetService('Players').LocalPlayer
local m = plr:GetMouse()
m.KeyDown:connect(function(k)
if _G.infinjump then
if k:byte() == 32 then
humanoid = game:GetService'Players'.LocalPlayer.Character:FindFirstChildOfClass('Humanoid')
humanoid:ChangeState('Jumping')
wait()
humanoid:ChangeState('Seated')
end
end
end)
end
but as you can see it only disables it if it is run again. So it could be in a button. But i want a toggle so how would i do this?
the format of a toggle should be:
local Toggle = Tab:CreateToggle({
Name = "Toggle Example",
CurrentValue = false,
Flag = "Toggle1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
Callback = function(Value)
-- The function that takes place when the toggle is pressed
-- The variable (Value) is a boolean on whether the toggle is true or false
end,
})
Comments
Moonzyss_ 4 Reputation
Commented
go try this
tell me if it works because i havent checked since i dont have my UWP open and im about to sleep
_G.infinJump = not _G.infinJump
local Toggle = Tab:CreateToggle({
Name = "Toggle Example",
CurrentValue = false,
Flag = "Toggle1",
Callback = function(Value)
_G.infinJump = not _G.infinJump
if _G.infinJump and _G.infinJumpStarted = nil then
_G.infinJumpStarted = true
game.StarterGui:SetCore("SendNotification", {Title="meow meow meowwwww"; Text="made by moonzy"; Duration=5;})
local plr = game:GetService('Players').LocalPlayer
local m = plr:GetMouse()
m.KeyDown:connect(function(k)
if _G.infinjump then
if k:byte() == 32 then
humanoid = game:GetService'Players'.LocalPlayer.Character:FindFirstChildOfClass('Humanoid')
humanoid:ChangeState('Jumping')
wait()
humanoid:ChangeState('Seated')
end
end)
end
end,
})
theactualhunter 0 Reputation
Commented
Hey again, I tried executing the script but it dosen't work i think its something to do with the variable The variable (Value) is a boolean on whether the toggle is true or false
Cancel
Post
Replied
ever heard of a documentation? docs.sirius.menu
you can just use a variable and check if that var is true, if not break, if true then im not bothered to type this out
Cancel
Post
Replied
So, whether you're a die-hard football fan or an avid tennis follower, the Melbet App Bookmaker https://mlbtbd.com/app/ has everything you need to satisfy your sports betting cravings. Download our app today and start experiencing the ultimate betting platform for sports enthusiasts.
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Comments
theactualhunter 0 Reputation
Commented
Thanks, i fixed some bits but when i put it into a rayfield toggle, it doesn't work.
0