Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- para que salga la animacion debes pulsar shift para correr
- local UIS = game:GetService('UserInputService')
- local Player = game.Players.LocalPlayer
- local Character = Player.Character
- UIS.InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.LeftShift then
- Character.Humanoid.WalkSpeed = 20 -- es la velocidad al correr
- local Anim = Instance.new('Animation')
- Anim.AnimationId = 'rbxassetid://(borras este parentesis y pones el ID de tu animacion)'
- PlayAnim = Character.Humanoid:LoadAnimation(Anim)
- PlayAnim:Play()
- end
- end)
- UIS.InputEnded:connect(function(input)
- if input.KeyCode == Enum.KeyCode.LeftShift then
- Character.Humanoid.WalkSpeed = 16 -- es la velocidad al caminar
- PlayAnim:Stop()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement