Skip to content

Instantly share code, notes, and snippets.

@asd142513
Created April 24, 2025 15:48
Show Gist options
  • Save asd142513/ebc54df8bca5662712ba2fdae3a396c8 to your computer and use it in GitHub Desktop.
Save asd142513/ebc54df8bca5662712ba2fdae3a396c8 to your computer and use it in GitHub Desktop.
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