I am working on making a tv show for my model TV in one of my games. What I want to do is that if you click the block again, it turns off the sound and when you click it, then it would play the sound again. I could not find any videos. Code is below.
Brick = script.Parent
Sound = Brick.Show
function onClicked()
Sound:Play()
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

2 comments
Um why use number instead of Boolean?
You could also, this was just a better example if you're more on the new end.