local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local player = Players.LocalPlayer local currentAnimationTrack = nil local screenGui = Instance.new("ScreenGui") screenGui.Name = "FoldEarsGUI" screenGui.ResetOnSpawn = false screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling local mainFrame = Instance.new("Frame") mainFrame.Name = "FoldEarsFrame" mainFrame.Size = UDim2.new(0, 220, 0, 120) mainFrame.Position = UDim2.new(0.5, -110, 0.3, -60) mainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40) mainFrame.BorderSizePixel = 0 mainFrame.ClipsDescendants = true local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 6) corner.Parent = mainFrame local titleBar = Instance.new("Frame") titleBar.Name = "TitleBar" titleBar.Size = UDim2.new(1, 0, 0, 28) titleBar.BackgroundColor3 = Color3.fromRGB(30, 30, 30) titleBar.BorderSizePixel = 0 local titleBarCorner = Instance.new("UICorner") titleBarCorner.CornerRadius = UDim.new(0, 6) titleBarCorner.Parent = titleBar local titleText = Instance.new("TextLabel") titleText.Name = "Title" titleText.Size = UDim2.new(0, 100, 1, 0) titleText.Position = UDim2.new(0, 10, 0, 0) titleText.BackgroundTransparency = 1 titleText.Text = "FoldEars" titleText.TextColor3 = Color3.fromRGB(255, 255, 255) titleText.TextSize = 13 titleText.Font = Enum.Font.GothamSemibold titleText.TextXAlignment = Enum.TextXAlignment.Left local minimizeButton = Instance.new("TextButton") minimizeButton.Name = "MinimizeButton" minimizeButton.Size = UDim2.new(0, 22, 0, 22) minimizeButton.Position = UDim2.new(1, -52, 0, 3) minimizeButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50) minimizeButton.BorderSizePixel = 0 minimizeButton.Text = "-" minimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255) minimizeButton.TextSize = 16 minimizeButton.Font = Enum.Font.GothamBold local minimizeCorner = Instance.new("UICorner") minimizeCorner.CornerRadius = UDim.new(0, 3) minimizeCorner.Parent = minimizeButton local closeButton = Instance.new("TextButton") closeButton.Name = "CloseButton" closeButton.Size = UDim2.new(0, 22, 0, 22) closeButton.Position = UDim2.new(1, -26, 0, 3) closeButton.BackgroundColor3 = Color3.fromRGB(200, 60, 60) closeButton.BorderSizePixel = 0 closeButton.Text = "×" closeButton.TextColor3 = Color3.fromRGB(255, 255, 255) closeButton.TextSize = 16 closeButton.Font = Enum.Font.GothamBold local closeCorner = Instance.new("UICorner") closeCorner.CornerRadius = UDim.new(0, 3) closeCorner.Parent = closeButton local contentFrame = Instance.new("Frame") contentFrame.Name = "Content" contentFrame.Size = UDim2.new(1, 0, 1, -28) contentFrame.Position = UDim2.new(0, 0, 0, 28) contentFrame.BackgroundTransparency = 1 local playButton = Instance.new("TextButton") playButton.Name = "PlayButton" playButton.Size = UDim2.new(0, 180, 0, 60) playButton.Position = UDim2.new(0.5, -90, 0.5, -30) playButton.BackgroundColor3 = Color3.fromRGB(70, 130, 200) playButton.BorderSizePixel = 0 playButton.Text = "PLAY" playButton.TextColor3 = Color3.fromRGB(255, 255, 255) playButton.TextSize = 20 playButton.Font = Enum.Font.GothamBold playButton.AutoButtonColor = false playButton.Active = true playButton.Visible = true local playCorner = Instance.new("UICorner") playCorner.CornerRadius = UDim.new(0, 8) playCorner.Parent = playButton titleText.Parent = titleBar minimizeButton.Parent = titleBar closeButton.Parent = titleBar titleBar.Parent = mainFrame playButton.Parent = contentFrame contentFrame.Parent = mainFrame mainFrame.Parent = screenGui screenGui.Parent = player:WaitForChild("PlayerGui") local function getHumanoidAndAnimator() local character = player.Character if not character then return nil, nil end local humanoid = character:FindFirstChild("Humanoid") if not humanoid then return nil, nil end local animator = humanoid:FindFirstChildOfClass("Animator") if not animator then animator = Instance.new("Animator") animator.Parent = humanoid end return humanoid, animator end local function playAnimation() local animation = Instance.new("Animation") animation.AnimationId = "rbxassetid://18122889704" local humanoid, animator local attempts = 0 local maxAttempts = 10 while attempts < maxAttempts do humanoid, animator = getHumanoidAndAnimator() if humanoid and animator then break end attempts += 1 wait(0.1) end if humanoid and animator then if currentAnimationTrack then currentAnimationTrack:Stop() currentAnimationTrack = nil end currentAnimationTrack = animator:LoadAnimation(animation) if currentAnimationTrack then currentAnimationTrack:Play() currentAnimationTrack.Stopped:Wait() currentAnimationTrack = nil end else wait(2) end end playButton.MouseButton1Click:Connect(function() spawn(playAnimation) end) playButton.MouseEnter:Connect(function() playButton.BackgroundColor3 = Color3.fromRGB(90, 150, 220) end) playButton.MouseLeave:Connect(function() playButton.BackgroundColor3 = Color3.fromRGB(70, 130, 200) end) playButton.MouseButton1Down:Connect(function() playButton.BackgroundColor3 = Color3.fromRGB(60, 110, 180) end) playButton.MouseButton1Up:Connect(function() playButton.BackgroundColor3 = Color3.fromRGB(90, 150, 220) end) minimizeButton.MouseEnter:Connect(function() minimizeButton.BackgroundColor3 = Color3.fromRGB(70, 70, 70) end) minimizeButton.MouseLeave:Connect(function() minimizeButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50) end) closeButton.MouseEnter:Connect(function() closeButton.BackgroundColor3 = Color3.fromRGB(220, 80, 80) end) closeButton.MouseLeave:Connect(function() closeButton.BackgroundColor3 = Color3.fromRGB(200, 60, 60) end) closeButton.MouseButton1Click:Connect(function() screenGui:Destroy() end) local isMinimized = false local originalSize = mainFrame.Size local minimizedSize = UDim2.new(mainFrame.Size.X.Scale, mainFrame.Size.X.Offset, 0, 28) local function minimizeGUI() local tweenInfo = TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) if isMinimized then local sizeTween = TweenService:Create(mainFrame, tweenInfo, {Size = originalSize}) playButton.Visible = false playButton.Position = UDim2.new(0.5, -90, 0.5, -10) playButton.Transparency = 1 sizeTween:Play() sizeTween.Completed:Wait() playButton.Visible = true local fadeInTween = TweenService:Create(playButton, tweenInfo, {Transparency = 0}) local slideUpTween = TweenService:Create(playButton, tweenInfo, {Position = UDim2.new(0.5, -90, 0.5, -30)}) fadeInTween:Play() slideUpTween:Play() minimizeButton.Text = "-" playButton.Active = true else local fadeOutTween = TweenService:Create(playButton, tweenInfo, {Transparency = 1}) local slideDownTween = TweenService:Create(playButton, tweenInfo, {Position = UDim2.new(0.5, -90, 0.5, -10)}) fadeOutTween:Play() slideDownTween:Play() fadeOutTween.Completed:Wait() local sizeTween = TweenService:Create(mainFrame, tweenInfo, {Size = minimizedSize}) sizeTween:Play() playButton.Visible = false playButton.Active = false minimizeButton.Text = "+" end isMinimized = not isMinimized end minimizeButton.MouseButton1Click:Connect(minimizeGUI) local dragging = false local dragInput, dragStart, startPos local function update(input) local delta = input.Position - dragStart mainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end titleBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = mainFrame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) titleBar.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then update(input) end end) player.CharacterAdded:Connect(function(character) character:WaitForChild("Humanoid") end) local shadow = Instance.new("ImageLabel") shadow.Name = "Shadow" shadow.Size = UDim2.new(1, 8, 1, 8) shadow.Position = UDim2.new(0, -4, 0, -4) shadow.BackgroundTransparency = 1 shadow.Image = "rbxassetid://1316045217" shadow.ImageColor3 = Color3.fromRGB(0, 0, 0) shadow.ImageTransparency = 0.7 shadow.ScaleType = Enum.ScaleType.Slice shadow.SliceCenter = Rect.new(10, 10, 118, 118) shadow.Parent = mainFrame shadow.ZIndex = -1 playButton.Transparency = 0 playButton.Visible = true playButton.Active = true