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?
basically can i make it so that each player can play the sound once
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)

1 comment
Are you wanting the player only to be able to play it once?