Categories > Exploiting > Scripts >

inf jump toggle script in rayfield ui?

Posts: 4

Threads: 1

Joined: Oct, 2023

Reputation: 0

Posted

So I was wondering how i could make the toggle for a infinite jump script in rayfield ui?

  • 0

Moonzyss_

i make funny lua code

Posts: 93

Threads: 5

Joined: Dec, 2022

Reputation: 6

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

Comments

theactualhunter 0 Reputation

Commented

Thanks, i fixed some bits but when i put it into a rayfield toggle, it doesn't work. 

  • 0

  • 0

https://cdn.discordapp.com/attachments/1147631284772937819/1150957497524428890/Tnwc9wP.png

Posts: 4

Threads: 1

Joined: Oct, 2023

Reputation: 0

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_ 6 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,
})
  • 0

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

  • 0

  • 0

TERIHAX

i say im gay as a joke 🙀

Posts: 2239

Threads: 102

Joined: Jul, 2020

Reputation: 32

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

  • 0

Posts: 6

Threads: 0

Joined: Oct, 2023

Reputation: 0

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.

  • 0

Users viewing this thread:

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