Advertisement
Edward09x

How to Animate

Jan 18th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. wait()
  2. local WA - Instance.new("animation")
  3. local IA = Instance.new("animation")
  4. Wa.AnimationId = "Put your animation ID"
  5. IA.AnimationID = "Put your animation ID"
  6. local humanoid = script.Parent.Humanoid
  7. local WalkAnimation = humanoid:LoadAnimation(WA)
  8. local IdleAnimation = humanoid:LoadAnimation(IA)
  9.  
  10. humanoid.Running:Connect(function(s)
  11. if a > 1 then
  12. IdleAnimation:Stop()
  13. WalkAnimation:Play()
  14. else
  15. WalkAnimation:Stop()
  16. IdleAnimation:Play()
  17. end
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement