Advertisement
filipaopastebins2134

Spin Animation

Jan 17th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. print("1 Key and 2 Animations made by filipaogamer345")
  2. local player = game.Players.LocalPlayer
  3. repeat wait() until player.Character.Humanoid
  4. local humanoid = player.Character.Humanoid
  5. local mouse = player:GetMouse()
  6. local once = true
  7. local enabled = true
  8.  
  9.  
  10. mouse.KeyDown:connect(function(key)
  11. if not enabled then return end
  12. enabled = false
  13. if key == "q" then --- Change the Key you want
  14. if once == true then
  15. once = false
  16. local anim = Instance.new("Animation")
  17. anim.AnimationId = "http://www.roblox.com/asset/?id=2729062050" --- Change the animation ID Here
  18. local PlayAnim = humanoid:LoadAnimation(anim)
  19. PlayAnim:Play()
  20. wait(1)
  21. else
  22. once = true
  23. local anim2 = Instance.new("Animation")
  24. anim2.AnimationId = "http://www.roblox.com/asset/?id=2729062050" --- Change the animation ID Here
  25. local playAnim = humanoid:LoadAnimation(anim2)
  26. playAnim:Play()
  27. wait(1)
  28. end
  29. end
  30. wait(0.1)
  31. enabled = true
  32. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement