Advertisement
Dr1llz_

DA hood animation pack script

Dec 18th, 2022 (edited)
3,265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.01 KB | Gaming | 0 0
  1. -- // clone
  2. for _, v in next, game:GetService("CoreGui"):GetChildren() do
  3. if (v.Name:match("FreeAnimationPack")) then
  4. v:Destroy()
  5. end
  6. end
  7.  
  8. -- // Instances
  9. local FreeAnimationPack = Instance.new("ScreenGui")
  10. local AnimationPack = Instance.new("TextButton")
  11. local Animations = Instance.new("ScrollingFrame")
  12. local UIListLayout = Instance.new("UIListLayout")
  13. local Lean = Instance.new("TextButton")
  14. local Lay = Instance.new("TextButton")
  15. local Dance1 = Instance.new("TextButton")
  16. local Dance2 = Instance.new("TextButton")
  17. local Greet = Instance.new("TextButton")
  18. local ChestPump = Instance.new("TextButton")
  19. local Praying = Instance.new("TextButton")
  20. local Stop = Instance.new("TextButton")
  21. local UniversalAnimation = Instance.new("Animation")
  22.  
  23. -- // Utility
  24. function stopTracks()
  25. for _, v in next, game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):GetPlayingAnimationTracks() do
  26. if (v.Animation.AnimationId:match("rbxassetid")) then
  27. v:Stop()
  28. end
  29. end
  30. end
  31.  
  32. function loadAnimation(id)
  33. if UniversalAnimation.AnimationId == id then
  34. stopTracks()
  35. UniversalAnimation.AnimationId = "1"
  36. else
  37. UniversalAnimation.AnimationId = id
  38. local animationTrack = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):LoadAnimation(UniversalAnimation)
  39. animationTrack:Play()
  40. end
  41. end
  42.  
  43.  
  44. FreeAnimationPack.Name = "FreeAnimationPack"
  45. FreeAnimationPack.Parent = game.CoreGui
  46. FreeAnimationPack.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  47.  
  48. AnimationPack.Name = "AnimationPack"
  49. AnimationPack.Parent = FreeAnimationPack
  50. AnimationPack.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  51. AnimationPack.BorderSizePixel = 0
  52. AnimationPack.Position = UDim2.new(0, 0, 0.388007045, 0)
  53. AnimationPack.Size = UDim2.new(0, 100, 0, 20)
  54. AnimationPack.Font = Enum.Font.SourceSansBold
  55. AnimationPack.Text = "Animations"
  56. AnimationPack.TextColor3 = Color3.fromRGB(0, 0, 0)
  57. AnimationPack.TextSize = 18.000
  58. AnimationPack.MouseButton1Click:Connect(function()
  59. if (Animations.Visible == false) then
  60. Animations.Visible = true
  61. end
  62. end)
  63.  
  64. Animations.Name = "Animations"
  65. Animations.Parent = AnimationPack
  66. Animations.Active = true
  67. Animations.BackgroundColor3 = Color3.fromRGB(102, 102, 102)
  68. Animations.Position = UDim2.new(-0.104712225, 0, -1.54173493, 0)
  69. Animations.Size = UDim2.new(0, 120, 0, 195)
  70. Animations.Visible = false
  71. Animations.CanvasPosition = Vector2.new(0, 60.0000305)
  72. Animations.CanvasSize = UDim2.new(0, 0, 1, 235)
  73.  
  74. UIListLayout.Parent = Animations
  75. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  76. UIListLayout.Padding = UDim.new(0, 2)
  77.  
  78. Lean.Name = "Lean"
  79. Lean.Parent = Animations
  80. Lean.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  81. Lean.Size = UDim2.new(1, 0, 0, 30)
  82. Lean.Font = Enum.Font.SourceSansBold
  83. Lean.Text = "Lean"
  84. Lean.TextColor3 = Color3.fromRGB(0, 0, 0)
  85. Lean.TextSize = 14.000
  86. Lean.MouseButton1Click:Connect(function()
  87. stopTracks()
  88. loadAnimation("rbxassetid://3152375249")
  89. end)
  90.  
  91. Lay.Name = "Lay"
  92. Lay.Parent = Animations
  93. Lay.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  94. Lay.Size = UDim2.new(1, 0, 0, 30)
  95. Lay.Font = Enum.Font.SourceSansBold
  96. Lay.Text = "Lay"
  97. Lay.TextColor3 = Color3.fromRGB(0, 0, 0)
  98. Lay.TextSize = 14.000
  99. Lay.MouseButton1Click:Connect(function()
  100. stopTracks()
  101. loadAnimation("rbxassetid://3152378852")
  102. end)
  103.  
  104. Dance1.Name = "Dance1"
  105. Dance1.Parent = Animations
  106. Dance1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  107. Dance1.Size = UDim2.new(1, 0, 0, 30)
  108. Dance1.Font = Enum.Font.SourceSansBold
  109. Dance1.Text = "Dance1"
  110. Dance1.TextColor3 = Color3.fromRGB(0, 0, 0)
  111. Dance1.TextSize = 14.000
  112. Dance1.MouseButton1Click:Connect(function()
  113. stopTracks()
  114. loadAnimation("rbxassetid://3189773368")
  115. end)
  116.  
  117. Dance2.Name = "Dance2"
  118. Dance2.Parent = Animations
  119. Dance2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  120. Dance2.Size = UDim2.new(1, 0, 0, 30)
  121. Dance2.Font = Enum.Font.SourceSansBold
  122. Dance2.Text = "Dance2"
  123. Dance2.TextColor3 = Color3.fromRGB(0, 0, 0)
  124. Dance2.TextSize = 14.000
  125. Dance2.MouseButton1Click:Connect(function()
  126. stopTracks()
  127. loadAnimation("rbxassetid://3189776546")
  128. end)
  129.  
  130. Greet.Name = "Greet"
  131. Greet.Parent = Animations
  132. Greet.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  133. Greet.Size = UDim2.new(1, 0, 0, 30)
  134. Greet.Font = Enum.Font.SourceSansBold
  135. Greet.Text = "Greet"
  136. Greet.TextColor3 = Color3.fromRGB(0, 0, 0)
  137. Greet.TextSize = 14.000
  138. Greet.MouseButton1Click:Connect(function()
  139. stopTracks()
  140. loadAnimation("rbxassetid://3189777795")
  141. end)
  142.  
  143. ChestPump.Name = "ChestPump"
  144. ChestPump.Parent = Animations
  145. ChestPump.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  146. ChestPump.Size = UDim2.new(1, 0, 0, 30)
  147. ChestPump.Font = Enum.Font.SourceSansBold
  148. ChestPump.Text = "Chest Pump"
  149. ChestPump.TextColor3 = Color3.fromRGB(0, 0, 0)
  150. ChestPump.TextSize = 14.000
  151. ChestPump.MouseButton1Click:Connect(function()
  152. stopTracks()
  153. loadAnimation("rbxassetid://3189779152")
  154. end)
  155.  
  156. Praying.Name = "Praying"
  157. Praying.Parent = Animations
  158. Praying.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  159. Praying.Size = UDim2.new(1, 0, 0, 30)
  160. Praying.Font = Enum.Font.SourceSansBold
  161. Praying.Text = "Praying"
  162. Praying.TextColor3 = Color3.fromRGB(0, 0, 0)
  163. Praying.TextSize = 14.000
  164. Praying.MouseButton1Click:Connect(function()
  165. stopTracks()
  166. loadAnimation("rbxassetid://3487719500")
  167. end)
  168.  
  169. Stop.Name = "Stop"
  170. Stop.Parent = Animations
  171. Stop.BackgroundColor3 = Color3.fromRGB(255, 112, 112)
  172. Stop.Size = UDim2.new(1, 0, 0, 30)
  173. Stop.Font = Enum.Font.SourceSansBold
  174. Stop.Text = "Stop Animation"
  175. Stop.TextColor3 = Color3.fromRGB(0, 0, 0)
  176. Stop.TextSize = 14.000
  177. Stop.MouseButton1Click:Connect(function()
  178. stopTracks()
  179. end)
  180. --close gui
  181. local plr = game.Players.LocalPlayer
  182.  
  183. plr:GetMouse().KeyDown:Connect(function(K)
  184. if K == "p" then
  185. Animations.Visible = false
  186. end
  187. end)
  188. warn("loaded")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement