brick=script.Parent music=brick.Parent.music function onClicked() if music.Played==false then music:Play() end end script.Parent.ClickDetector.MouseClick:connect(onClicked)
if anyone is able to help that'd be amazing! thanks. Any reply is helpful.
Use the property of sounds playing http://wiki.roblox.com/index.php?title=API:Class/Sound/Playing
function onClicked() if not music.Playing then music:Play() end end