-- LocalScript inside StarterPlayer > StarterPlayerScripts local player = game.Players.LocalPlayer local gui = script.Parent local button = gui:WaitForChild("DanceButton") -- Assuming the button is named DanceButton local textLabel = gui:WaitForChild("ClickMessage") -- Assuming the label is named ClickMessage -- Function to make the player dance local function makePlayerDance() local character = player.Character if character and character:FindFirstChild("Humanoid") then local humanoid = character:FindFirstChild("Humanoid") -- Make sure the animation is in ReplicatedStorage local danceAnim = game.ReplicatedStorage:WaitForChild("Dance2Animation") humanoid:LoadAnimation(danceAnim):Play() -- Play the dance animation end end -- Button click listener button.MouseButton1Click:Connect(function() makePlayerDance() end)