vxscripts

Roblox Run Toggle

Nov 29th, 2025
56
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | Gaming | 0 0
  1. --[VARIABLES]--
  2. local uis = game:GetService("UserInputService")
  3. local player = game.Players.LocalPlayer
  4.  
  5. --[KEY INPUTS]--
  6. uis.InputBegan:Connect(function(input, gameProcessedEvent)
  7.     if gameProcessedEvent then return end
  8.     if input.KeyCode == Enum.KeyCode.R then -- change R to whatever key you want as a hotkey (has to be all uppercase)
  9.         local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
  10.         if humanoid then
  11.             speedToggle = not speedToggle --toggle for the speed (normal for it to be underlined)
  12.             humanoid.WalkSpeed = speedToggle and 32 or 16 --the 2 speeds you can get
  13.         end
  14.     end
  15. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment