Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local UserInputService = game:GetService("UserInputService")
- local TweenService = game:GetService("TweenService")
- local player = Players.LocalPlayer
- -- GUI ROOT
- local gui = Instance.new("ScreenGui")
- gui.Name = "BinosBeyAnimationHub"
- gui.Parent = player:WaitForChild("PlayerGui")
- ---------------------------------------------------
- -- CREDITS SCREEN
- ---------------------------------------------------
- local credits = Instance.new("Frame")
- credits.Size = UDim2.new(1, 0, 1, 0)
- credits.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- credits.Parent = gui
- local text = Instance.new("TextLabel")
- text.Size = UDim2.new(1, 0, 1, 0)
- text.BackgroundTransparency = 1
- text.Text = "Made By Rip_BinosBey"
- text.TextColor3 = Color3.fromRGB(255, 204, 0)
- text.TextScaled = true
- text.Font = Enum.Font.GothamBlack
- text.Parent = credits
- -- fade animation
- local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
- task.delay(2, function()
- local fade = TweenService:Create(credits, tweenInfo, {BackgroundTransparency = 1})
- local fadeText = TweenService:Create(text, tweenInfo, {TextTransparency = 1})
- fade:Play()
- fadeText:Play()
- fade.Completed:Wait()
- credits:Destroy()
- end)
- ---------------------------------------------------
- -- MAIN HUB
- ---------------------------------------------------
- task.wait(2.2)
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 260, 0, 260)
- frame.Position = UDim2.new(0.5, -130, 0.5, -130)
- frame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- frame.BorderSizePixel = 0
- frame.Parent = gui
- local corner = Instance.new("UICorner")
- corner.CornerRadius = UDim.new(0, 10)
- corner.Parent = frame
- local stroke = Instance.new("UIStroke")
- stroke.Color = Color3.fromRGB(255, 204, 0)
- stroke.Thickness = 2
- stroke.Parent = frame
- ---------------------------------------------------
- -- DRAG SYSTEM
- ---------------------------------------------------
- local dragging = false
- local dragStart, startPos
- frame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = frame.Position
- end
- end)
- frame.InputChanged:Connect(function(input)
- if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
- local delta = input.Position - dragStart
- frame.Position = UDim2.new(
- startPos.X.Scale,
- startPos.X.Offset + delta.X,
- startPos.Y.Scale,
- startPos.Y.Offset + delta.Y
- )
- end
- end)
- UserInputService.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = false
- end
- end)
- ---------------------------------------------------
- -- ANIMATION SYSTEM
- ---------------------------------------------------
- local currentTrack
- local function getAnimator()
- local char = player.Character
- if not char then return end
- local hum = char:FindFirstChildOfClass("Humanoid")
- if not hum then return end
- local animator = hum:FindFirstChildOfClass("Animator")
- if not animator then
- animator = Instance.new("Animator")
- animator.Parent = hum
- end
- return animator
- end
- local function playAnim(id)
- local animator = getAnimator()
- if not animator then return end
- if currentTrack then
- currentTrack:Stop()
- end
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://" .. id
- currentTrack = animator:LoadAnimation(anim)
- currentTrack:Play()
- end
- local function stopAnim()
- if currentTrack then
- currentTrack:Stop()
- currentTrack = nil
- end
- end
- ---------------------------------------------------
- -- BUTTON SYSTEM
- ---------------------------------------------------
- local function createButton(text, y, animId)
- local btn = Instance.new("TextButton")
- btn.Size = UDim2.new(0, 220, 0, 45)
- btn.Position = UDim2.new(0.5, -110, 0, y)
- btn.Text = text
- btn.TextColor3 = Color3.fromRGB(255, 255, 255)
- btn.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
- btn.BorderSizePixel = 0
- btn.Parent = frame
- local c = Instance.new("UICorner")
- c.CornerRadius = UDim.new(0, 6)
- c.Parent = btn
- local s = Instance.new("UIStroke")
- s.Color = Color3.fromRGB(255, 204, 0)
- s.Thickness = 1.5
- s.Parent = btn
- btn.MouseButton1Click:Connect(function()
- playAnim(animId)
- end)
- end
- -- BUTTONS
- createButton("Furube Yura Yura", 10, "107336618078320")
- createButton("Yuji Jump", 60, "139982320267456")
- createButton("Honored One", 110, "111383986305209")
- -- STOP BUTTON
- local stopBtn = Instance.new("TextButton")
- stopBtn.Size = UDim2.new(0, 220, 0, 45)
- stopBtn.Position = UDim2.new(0.5, -110, 0, 170)
- stopBtn.Text = "STOP ANIMATION"
- stopBtn.TextColor3 = Color3.fromRGB(255, 80, 80)
- stopBtn.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- stopBtn.BorderSizePixel = 0
- stopBtn.Parent = frame
- local sc = Instance.new("UICorner")
- sc.CornerRadius = UDim.new(0, 6)
- sc.Parent = stopBtn
- local ss = Instance.new("UIStroke")
- ss.Color = Color3.fromRGB(255, 0, 0)
- ss.Thickness = 2
- ss.Parent = stopBtn
- stopBtn.MouseButton1Click:Connect(function()
- stopAnim()
- end)
Advertisement
Add Comment
Please, Sign In to add comment