I'm trying to make a GUI that plays some dramatic music when pressed, and when pressed again it disables.
enabled = false
b = script.Parent
b.MouseButton1down:connect(function()
if enabled then
game.SoundService.Dramatic:Play()
enabled = false
else
game.SoundService.Dramatic:Stop()
enabled = true
end
end)
Thanks if you can help, I'm also a bit of a noob so please go easy!

1 comment
it's MouseButton1Down, not MouseButton1down because lua is case sensitive. make sure that this is a localscript inside a button too