C00lkidd27

animhubbbbb

Jul 4th, 2026
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.07 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local UserInputService = game:GetService("UserInputService")
  3. local TweenService = game:GetService("TweenService")
  4.  
  5. local player = Players.LocalPlayer
  6.  
  7. -- GUI ROOT
  8. local gui = Instance.new("ScreenGui")
  9. gui.Name = "BinosBeyAnimationHub"
  10. gui.Parent = player:WaitForChild("PlayerGui")
  11.  
  12. ---------------------------------------------------
  13. -- CREDITS SCREEN
  14. ---------------------------------------------------
  15. local credits = Instance.new("Frame")
  16. credits.Size = UDim2.new(1, 0, 1, 0)
  17. credits.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  18. credits.Parent = gui
  19.  
  20. local text = Instance.new("TextLabel")
  21. text.Size = UDim2.new(1, 0, 1, 0)
  22. text.BackgroundTransparency = 1
  23. text.Text = "Made By Rip_BinosBey"
  24. text.TextColor3 = Color3.fromRGB(255, 204, 0)
  25. text.TextScaled = true
  26. text.Font = Enum.Font.GothamBlack
  27. text.Parent = credits
  28.  
  29. -- fade animation
  30. local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
  31.  
  32. task.delay(2, function()
  33. local fade = TweenService:Create(credits, tweenInfo, {BackgroundTransparency = 1})
  34. local fadeText = TweenService:Create(text, tweenInfo, {TextTransparency = 1})
  35.  
  36. fade:Play()
  37. fadeText:Play()
  38.  
  39. fade.Completed:Wait()
  40. credits:Destroy()
  41. end)
  42.  
  43. ---------------------------------------------------
  44. -- MAIN HUB
  45. ---------------------------------------------------
  46. task.wait(2.2)
  47.  
  48. local frame = Instance.new("Frame")
  49. frame.Size = UDim2.new(0, 260, 0, 260)
  50. frame.Position = UDim2.new(0.5, -130, 0.5, -130)
  51. frame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  52. frame.BorderSizePixel = 0
  53. frame.Parent = gui
  54.  
  55. local corner = Instance.new("UICorner")
  56. corner.CornerRadius = UDim.new(0, 10)
  57. corner.Parent = frame
  58.  
  59. local stroke = Instance.new("UIStroke")
  60. stroke.Color = Color3.fromRGB(255, 204, 0)
  61. stroke.Thickness = 2
  62. stroke.Parent = frame
  63.  
  64. ---------------------------------------------------
  65. -- DRAG SYSTEM
  66. ---------------------------------------------------
  67. local dragging = false
  68. local dragStart, startPos
  69.  
  70. frame.InputBegan:Connect(function(input)
  71. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  72. dragging = true
  73. dragStart = input.Position
  74. startPos = frame.Position
  75. end
  76. end)
  77.  
  78. frame.InputChanged:Connect(function(input)
  79. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  80. local delta = input.Position - dragStart
  81. frame.Position = UDim2.new(
  82. startPos.X.Scale,
  83. startPos.X.Offset + delta.X,
  84. startPos.Y.Scale,
  85. startPos.Y.Offset + delta.Y
  86. )
  87. end
  88. end)
  89.  
  90. UserInputService.InputEnded:Connect(function(input)
  91. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  92. dragging = false
  93. end
  94. end)
  95.  
  96. ---------------------------------------------------
  97. -- ANIMATION SYSTEM
  98. ---------------------------------------------------
  99. local currentTrack
  100.  
  101. local function getAnimator()
  102. local char = player.Character
  103. if not char then return end
  104.  
  105. local hum = char:FindFirstChildOfClass("Humanoid")
  106. if not hum then return end
  107.  
  108. local animator = hum:FindFirstChildOfClass("Animator")
  109. if not animator then
  110. animator = Instance.new("Animator")
  111. animator.Parent = hum
  112. end
  113.  
  114. return animator
  115. end
  116.  
  117. local function playAnim(id)
  118. local animator = getAnimator()
  119. if not animator then return end
  120.  
  121. if currentTrack then
  122. currentTrack:Stop()
  123. end
  124.  
  125. local anim = Instance.new("Animation")
  126. anim.AnimationId = "rbxassetid://" .. id
  127.  
  128. currentTrack = animator:LoadAnimation(anim)
  129. currentTrack:Play()
  130. end
  131.  
  132. local function stopAnim()
  133. if currentTrack then
  134. currentTrack:Stop()
  135. currentTrack = nil
  136. end
  137. end
  138.  
  139. ---------------------------------------------------
  140. -- BUTTON SYSTEM
  141. ---------------------------------------------------
  142. local function createButton(text, y, animId)
  143. local btn = Instance.new("TextButton")
  144. btn.Size = UDim2.new(0, 220, 0, 45)
  145. btn.Position = UDim2.new(0.5, -110, 0, y)
  146. btn.Text = text
  147. btn.TextColor3 = Color3.fromRGB(255, 255, 255)
  148. btn.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  149. btn.BorderSizePixel = 0
  150. btn.Parent = frame
  151.  
  152. local c = Instance.new("UICorner")
  153. c.CornerRadius = UDim.new(0, 6)
  154. c.Parent = btn
  155.  
  156. local s = Instance.new("UIStroke")
  157. s.Color = Color3.fromRGB(255, 204, 0)
  158. s.Thickness = 1.5
  159. s.Parent = btn
  160.  
  161. btn.MouseButton1Click:Connect(function()
  162. playAnim(animId)
  163. end)
  164. end
  165.  
  166. -- BUTTONS
  167. createButton("Furube Yura Yura", 10, "107336618078320")
  168. createButton("Yuji Jump", 60, "139982320267456")
  169. createButton("Honored One", 110, "111383986305209")
  170.  
  171. -- STOP BUTTON
  172. local stopBtn = Instance.new("TextButton")
  173. stopBtn.Size = UDim2.new(0, 220, 0, 45)
  174. stopBtn.Position = UDim2.new(0.5, -110, 0, 170)
  175. stopBtn.Text = "STOP ANIMATION"
  176. stopBtn.TextColor3 = Color3.fromRGB(255, 80, 80)
  177. stopBtn.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  178. stopBtn.BorderSizePixel = 0
  179. stopBtn.Parent = frame
  180.  
  181. local sc = Instance.new("UICorner")
  182. sc.CornerRadius = UDim.new(0, 6)
  183. sc.Parent = stopBtn
  184.  
  185. local ss = Instance.new("UIStroke")
  186. ss.Color = Color3.fromRGB(255, 0, 0)
  187. ss.Thickness = 2
  188. ss.Parent = stopBtn
  189.  
  190. stopBtn.MouseButton1Click:Connect(function()
  191. stopAnim()
  192. end)
Advertisement
Add Comment
Please, Sign In to add comment