Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Axtra's (cryptic's) Running Script
- --When you hold "C" your WalkSpeed will be the runSpeed you can set
- --When you stop holding "C" your WalkSpeed will be the normalSpeed you can set
- --reseting will stop the script so you can change the speeds
- local runSpeed = 64 --change this to how fast you wanna run (16 = normal)
- local normalSpeed = 16 --change this if you want your normal speed to be higher
- local hum = game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid")
- local UserInputService = game:GetService("UserInputService")
- local isRunning = false
- local function onKeyPress(input, gameProcessedEvent)
- if gameProcessedEvent then
- return
- end
- if input.KeyCode == Enum.KeyCode.C then
- print("Running script!")
- hum.WalkSpeed = runSpeed
- isRunning = true
- end
- end
- local function onKeyRelease(input, gameProcessedEvent)
- if gameProcessedEvent then
- return
- end
- if input.KeyCode == Enum.KeyCode.C then
- print("Stopped script.")
- hum.WalkSpeed = normalSpeed
- isRunning = false
- end
- end
- UserInputService.InputBegan:Connect(onKeyPress)
- UserInputService.InputEnded:Connect(onKeyRelease)
- while true do
- if isRunning then
- print("Running...")
- end
- wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement