Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- LocalScript at StarterPlayer > StarterPlayerScripts --
- local inputService = game:GetService("UserInputService")
- local plr = game.Players.LocalPlayer
- local char = plr.Character or plr.CharacterAdded:wait()
- local sprinting = false
- inputService.InputBegan:Connect(function(key)
- if key.KeyCode == Enum.KeyCode.LeftShift or key.KeyCode == Enum.KeyCode.R then
- running = true
- if char.Humanoid then
- char.Humanoid.WalkSpeed = 30
- end
- end
- end)
- inputService.InputEnded:Connect(function(key)
- if key.KeyCode == Enum.KeyCode.LeftShift or key.KeyCode == Enum.KeyCode.R then
- running = false
- if char.Humanoid then
- char.Humanoid.WalkSpeed = 16
- end
- end
- end)
- -- Não se esqueçam de inscrever no canal :D --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement