I made a script that makes it so that when a player clicks on my selected model, it plays a sound How can i make it so that after a player clicks on the part once it does not play again when clicking on it a second time?
This is the script I'm currently using:
Brick = script.Parent
Sound = Brick.Sound2
function onClicked()
Sound:Play()
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

3 comments
This shouldn't be an answer and should be a comment instead.
Nevermind. I didn't see your also fixing the issue. I thought you were just saying to use Connect().
Thanks so much :)