Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
16,911
2
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 2 0
  1. Code:
  2. --[[
  3.  
  4. **R6 Animations**
  5. rbxassetid://181526230 - Faint
  6. rbxassetid://313762630 - Levitate
  7. rbxassetid://188632011 - ** Spinner
  8. rbxassetid://179224234 - Float Sit
  9. rbxassetid://180612465 - Scared
  10. rbxassetid://121572214 - Floating Head
  11. rbxassetid://182724289 - Crouch
  12. rbxassetid://429703734 - Moving Dance
  13. rbxassetid://313762630 - Glitch Levitate
  14. rbxassetid://429730430 - ** Spin Dance
  15. rbxassetid://186934910 - ** Spin Dance 2
  16. rbxassetid://181525546 - Floor Faint
  17. rbxassetid://181525546 - Super Faint
  18. rbxassetid://204292303 - Bow Down
  19. rbxassetid://204295235 - Sword Slam
  20. rbxassetid://33796059 - Insane
  21. rbxassetid://184574340 - Mega Insane
  22. rbxassetid://35978879 - Sword Slice
  23. rbxassetid://35154961 - ** Head Throw
  24. rbxassetid://282574440 - Floor Crawl
  25. rbxassetid://204328711 - Dino Walk
  26. rbxassetid://35154961 - ** Loop Head
  27. rbxassetid://184574340 - Hero Jump
  28. rbxassetid://215384594 - Weird Move Back
  29. rbxassetid://215384594 - Clone Illusion
  30. rbxassetid://45834924 - Moon Dance
  31. rbxassetid://204062532 - Full Punch
  32. rbxassetid://218504594 - Full Swing
  33. rbxassetid://259438880 - Arm Turbine
  34. rbxassetid://136801964 - Barrel Roll
  35. rbxassetid://33169583 - ** Arm Detach
  36. rbxassetid://27432691 - ** Insane Arms
  37.  
  38.  
  39. **R15 Animations**
  40. rbxassetid://754658275 - Spinner
  41. rbxassetid://582855105 - Open
  42. rbxassetid://698251653 - Circle Arm
  43. rbxassetid://754656200 - Fling Arms
  44. rbxassetid://674871189 - Crazy Slash
  45. rbxassetid://717879555 - Float Slash
  46. rbxassetid://746398327 - Down Slash
  47. rbxassetid://675025570 - Rotate Slash
  48. rbxassetid://696096087 - Bend
  49. rbxassetid://582384156 - Arms out
  50. rbxassetid://708553116 - Zombie Attack
  51. rbxassetid://675025795 - Pull
  52.  
  53. ]]
  54.  
  55.  
  56.  
  57. function keyBindAnim(animID, keybind, keybindDestroy, LoopValue)
  58.  
  59. print('Added New Animation on KeyBind:', keybind)
  60. local plr = game.Players.LocalPlayer
  61. local m = plr:GetMouse()
  62. local Anim = Instance.new("Animation", game.Lighting)
  63. Anim.AnimationId = animID
  64. local track = plr.Character.Humanoid:LoadAnimation(Anim)
  65. local active = false
  66.  
  67. plr.CharacterAdded:connect(function(character)
  68. track = character:WaitForChild('Humanoid'):LoadAnimation(Anim)
  69. active = false
  70. end)
  71.  
  72. m.KeyDown:connect(function(key)
  73. if key == keybind and Anim.Parent ~= nil then
  74. active = not active
  75. if active and LoopValue == false then
  76. track:Play(.1, 1, 1)
  77. elseif active and LoopValue == true then
  78. while active do
  79. wait(.1)
  80. if track.IsPlaying == false then
  81. track:Play(.1, 1, 1)
  82. wait()
  83. end
  84. end
  85. elseif not active and Anim.Parent ~= nil then
  86. track:Stop()
  87. end
  88. elseif key == keybindDestroy and Anim.Parent ~= nil then
  89. active = false
  90. track:Stop()
  91. Anim:Destroy()
  92. print('Animation stopped on Keybind: ', keybind)
  93. end
  94. end)
  95. end
  96.  
  97. --keyBindAnim(Animation Id, KeyBind, DestroyBind, LoopValue)
  98. --Example: keyBindAnim('rbxassetid://179224234' , 'x', 'z', true)
  99.  
  100. keyBindAnim('rbxassetid://188632011' ,'x', 'z', true)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement