Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created by DaVector212.
- --Please SMASH that subscribe button.
- local UIS = game:GetService('UserInputService')
- local Player = game.Players.LocalPlayer
- local Character = Player.Character
- UIS.InputBegan:connect(function(input)--When a player has pressed LeftShift it will play the animation and it will set the normal walking speed (16) to 35.
- if input.KeyCode == Enum.KeyCode.LeftShift then
- Character.Humanoid.WalkSpeed = 35
- local Anim = Instance.new('Animation')
- Anim.AnimationId = 'rbxassetid://1356959880'
- PlayAnim = Character.Humanoid:LoadAnimation(Anim)
- PlayAnim:Play()
- end
- end)
- UIS.InputEnded:connect(function(input)
- if input.KeyCode == Enum.KeyCode.LeftShift then
- Character.Humanoid.WalkSpeed = 10
- PlayAnim:Stop()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement