Script Animation play sound

someone help me in this script when I change dance and the previous mind was paused or when I paused it

alguien me ayuda en este script cuando cambie de baile y se pause el anterior mente o cuando lo pause

Schermafbeelding 2021-05-11 233604

Do you prefer Spanish or English?

I can’t see anything wrong with it. Is the button a part in the workspace?

Capitalize the first letter of Play()

https://developer.roblox.com/en-us/api-reference/function/Sound/Play

1 Like

I believe it’s MouseButton1Click not MouseClick.

is button a textbutton if it is. Then do button.MouseButton1Click:Connect(functon).

I’m blind LOL, yeah what these guy’s said, :Play() and MouseButton1Down

1 Like

as you want as you want as you get used to writing

1 Like

local Button = script.Parent
local Song = Button.Sound

Button.MouseClick:Connect(function()

Song.Play()

end)