How to run an animation when a button is clicked

How to run an animation when a button is clicked

1 Like

GuiObject: button.MouseButton1Click:Connect(function() animation:Play() end)

ClickDetector: clickdetector.MouseClick:Connect(function() animation:Play() end)

1 Like