-- Create ScreenGui local gui = Instance.new("ScreenGui") gui.ResetOnSpawn = false -- stays after respawn! gui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") -- Create Button local btn = Instance.new("TextButton") btn.Size = UDim2.new(0, 180, 0, 50) btn.Position = UDim2.new(0.5, -90, 0.8, 0) btn.BackgroundColor3 = Color3.fromRGB(40, 40, 40) btn.TextColor3 = Color3.new(1,1,1) btn.Font = Enum.Font.GothamBold btn.TextSize = 20 btn.Text = "Play Animation" btn.Parent = gui -- On click, play then stop after 6 seconds btn.MouseButton1Click:Connect(function() local player = game.Players.LocalPlayer local char = player.Character or player.CharacterAdded:Wait() local humanoid = char:WaitForChild("Humanoid") local anim = Instance.new("Animation") anim.AnimationId = "rbxassetid://35654637" local track = humanoid:LoadAnimation(anim) track:Play() -- stop after 9 seconds task.wait(9) track:Stop() end)