Created
April 24, 2025 15:48
-
-
Save asd142513/ebc54df8bca5662712ba2fdae3a396c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local isPressed = nil; | |
local isFastMode = nil; | |
function toggleSpeedMode() | |
local wasPressed = isPressed; | |
isPressed = input.get()["X1 LeftTrigger"]; | |
if wasPressed or not isPressed then | |
do return end | |
end | |
if isFastMode then | |
client.speedmode(100); | |
else | |
client.speedmode(400); | |
end | |
isFastMode = not isFastMode; | |
end | |
print(event.oninputpoll(toggleSpeedMode)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment