Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[VARIABLES]--
- local uis = game:GetService("UserInputService")
- local player = game.Players.LocalPlayer
- --[KEY INPUTS]--
- uis.InputBegan:Connect(function(input, gameProcessedEvent)
- if gameProcessedEvent then return end
- if input.KeyCode == Enum.KeyCode.R then -- change R to whatever key you want as a hotkey (has to be all uppercase)
- local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
- if humanoid then
- speedToggle = not speedToggle --toggle for the speed (normal for it to be underlined)
- humanoid.WalkSpeed = speedToggle and 32 or 16 --the 2 speeds you can get
- end
- end
- end)
Advertisement
Comments
-
- -- put this in server script service (server script) --
Add Comment
Please, Sign In to add comment