Thanks both of you. Your welcome to add on to the idea and change it, but I just quickly came up with it without looking at how it could be made even easier.
By "stop playing" I mean stop playing any sounds, so that say I hide a costume, if it's hidden I want it to stop playing sounds else if show play sounds.