Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Input = game:GetService("UserInputService")
- local Humanoid = script.Parent:WaitForChild("Humanoid")
- local runningSpeed =
- local walkingSpeed =
- Input.InputBegan:Connect(function(key)
- if key.KeyCode == Enum.KeyCode.LeftShift then
- Humanoid.WalkSpeed = runningSpeed
- end
- end)
- Input.InputEnded:Connect(function(key)
- if key.KeyCode == Enum.KeyCode.LeftShift then
- Humanoid.WalkSpeed = walkingSpeed
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement