toonrun123

AnimationTest

May 19th, 2019
92
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait(1)
  2. -- Instances:
  3. local Animgui = Instance.new("ScreenGui")
  4. local Main = Instance.new("Frame")
  5. local O = Instance.new("TextButton")
  6. local D = Instance.new("TextButton")
  7. local T = Instance.new("TextButton")
  8. local B = Instance.new("TextButton")
  9. local I = Instance.new("TextButton")
  10. --Properties:
  11. Animgui.Name = "Animgui"
  12. Animgui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  13.  
  14. Main.Name = "Main"
  15. Main.Parent = Animgui
  16. Main.BackgroundColor3 = Color3.new(0, 0.666667, 1)
  17. Main.BorderSizePixel = 0
  18. Main.Position = UDim2.new(0, 0, 0.503154576, 0)
  19. Main.Size = UDim2.new(0, 151, 0, 289)
  20.  
  21. O.Name = "O"
  22. O.Parent = Main
  23. O.BackgroundColor3 = Color3.new(1, 1, 1)
  24. O.BackgroundTransparency = 1
  25. O.Position = UDim2.new(0, 0, 0.0669719279, 0)
  26. O.Size = UDim2.new(0, 151, 0, 50)
  27. O.Font = Enum.Font.SourceSans
  28. O.Text = "Orange Justice"
  29. O.TextColor3 = Color3.new(0, 0, 0)
  30. O.TextScaled = true
  31. O.TextSize = 15
  32. O.TextWrapped = true
  33.  
  34. D.Name = "D"
  35. D.Parent = Main
  36. D.BackgroundColor3 = Color3.new(1, 1, 1)
  37. D.BackgroundTransparency = 1
  38. D.Position = UDim2.new(0, 0, 0.239261895, 0)
  39. D.Size = UDim2.new(0, 151, 0, 50)
  40. D.Font = Enum.Font.SourceSans
  41. D.Text = "Dab"
  42. D.TextColor3 = Color3.new(0, 0, 0)
  43. D.TextScaled = true
  44. D.TextSize = 15
  45. D.TextWrapped = true
  46.  
  47. T.Name = "T"
  48. T.Parent = Main
  49. T.BackgroundColor3 = Color3.new(1, 1, 1)
  50. T.BackgroundTransparency = 1
  51. T.Position = UDim2.new(0, 0, 0.410831422, 0)
  52. T.Size = UDim2.new(0, 151, 0, 50)
  53. T.Font = Enum.Font.SourceSans
  54. T.Text = "T pose"
  55. T.TextColor3 = Color3.new(0, 0, 0)
  56. T.TextScaled = true
  57. T.TextSize = 15
  58. T.TextWrapped = true
  59.  
  60. B.Name = "B"
  61. B.Parent = Main
  62. B.BackgroundColor3 = Color3.new(1, 1, 1)
  63. B.BackgroundTransparency = 1
  64. B.Position = UDim2.new(0, 0, 0.581102014, 0)
  65. B.Size = UDim2.new(0, 151, 0, 50)
  66. B.Font = Enum.Font.SourceSans
  67. B.Text = "Barrel Roll"
  68. B.TextColor3 = Color3.new(0, 0, 0)
  69. B.TextScaled = true
  70. B.TextSize = 15
  71. B.TextWrapped = true
  72.  
  73. I.Parent = Main
  74. I.BackgroundColor3 = Color3.new(1, 1, 1)
  75. I.BackgroundTransparency = 1
  76. I.Position = UDim2.new(0, 0, 0.754112422, 0)
  77. I.Size = UDim2.new(0, 151, 0, 50)
  78. I.Font = Enum.Font.SourceSans
  79. I.Text = "Idle"
  80. I.TextColor3 = Color3.new(0, 0, 0)
  81. I.TextScaled = true
  82. I.TextSize = 15
  83. I.TextWrapped = true
  84. -- Scripts:
  85. local Oj = Instance.new("Animation")
  86. Oj.AnimationId = "rbxassetid://3195496470"
  87. Oj.Parent = game.Players.LocalPlayer.Character
  88. Oj.Name = "OrangeJustice"
  89. local AnimLoaderOj = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Oj)
  90. EmoteOj = true
  91. O.MouseButton1Click:connect(function()
  92.     if EmoteOj == true then
  93.         AnimLoaderOj:Play()
  94.         EmoteOj = false
  95.         print("Play")
  96.     elseif EmoteOj == false then
  97.         AnimLoaderOj:Stop()
  98.         EmoteOj = true
  99.         print("Stop")
  100.     end
  101. end)
  102.  
  103. local Da = Instance.new("Animation")
  104. Da.AnimationId = "rbxassetid://248263260"
  105. Da.Parent = game.Players.LocalPlayer.Character
  106. Da.Name = "Dab"
  107. local AnimLoaderD = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Da)
  108. EmoteD = true
  109. D.MouseButton1Click:connect(function()
  110.     if EmoteD == true then
  111.         AnimLoaderD:Play()
  112.         EmoteD = false
  113.         print("Play")
  114.     elseif EmoteD == false then
  115.         AnimLoaderD:Stop()
  116.         EmoteD = true
  117.         print("Stop")
  118.     end
  119. end)
  120.  
  121. local Ta = Instance.new("Animation")
  122. Ta.AnimationId = "rbxassetid://3195677493"
  123. Ta.Parent = game.Players.LocalPlayer.Character
  124. Ta.Name = "Tpose"
  125. local AnimLoadert = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Ta)
  126. Emotet = true
  127. T.MouseButton1Click:connect(function()
  128.     if Emotet == true then
  129.         AnimLoadert:Play()
  130.         Emotet = false
  131.         print("Play")
  132.     elseif Emotet == false then
  133.         AnimLoadert:Stop()
  134.         Emotet = true
  135.         print("Stop")
  136.     end
  137. end)
  138.  
  139. local ba = Instance.new("Animation")
  140. ba.AnimationId = "rbxassetid://3195699106"
  141. ba.Parent = game.Players.LocalPlayer.Character
  142. ba.Name = "BarrelRoll"
  143. local AnimLoaderb = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(ba)
  144. Emoteb = true
  145. B.MouseButton1Click:connect(function()
  146.     if Emoteb == true then
  147.         AnimLoaderb:Play()
  148.         Emoteb = false
  149.         print("Play")
  150.     elseif Emoteb == false then
  151.         AnimLoaderb:Stop()
  152.         Emoteb = true
  153.         print("Stop")
  154.     end
  155. end)
  156.  
  157. local ia = Instance.new("Animation")
  158. ia.AnimationId = "rbxassetid://3195711872"
  159. ia.Parent = game.Players.LocalPlayer.Character
  160. ia.Name = "Idle"
  161. local AnimLoaderi = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(ia)
  162. Emotei = true
  163. I.MouseButton1Click:connect(function()
  164.     if Emotei == true then
  165.         AnimLoaderi:Play()
  166.         Emotei = false
  167.         print("Play")
  168.     elseif Emotei == false then
  169.         AnimLoaderi:Stop()
  170.         Emotei = true
  171.         print("Stop")
  172.     end
  173. end)
RAW Paste Data