10-17-2010, 02:13 PM
Put the sound you want to play and a BooleanValue called Playing in the play button, then put a script inside it:
Players can then click the button to start and stop the music.
Code:
link(script.Parent.Clicked, function()
if script.Parent.Playing.Value then
script.Parent.Sound:stop()
script.Parent.Playing.Value = false
else
script.Parent.Sound:play()
script.Parent.Playing.Value = true
end
end)
Players can then click the button to start and stop the music.