Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --PUT THIS SCRIPT IN STARTERGUI--
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local sprintSpeed = 40
- mouse.KeyDown:Connect(function(key)
- if key == "0" then
- --Sprint
- player.Character.Humanoid.WalkSpeed = sprintSpeed
- end
- end)
- mouse.KeyUp:Connect(function(key)
- if key == "0" then
- --Stop Sprint
- player.Character.Humanoid.WalkSpeed = 16
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement