This is how I created a switch by using a variable. I made it so switch 1 played music, and switch 0 stopped the music. I made it so if you clicked one sprite, it would set switch to 1, playing the music. And if you clicked another sprite it would set switch to 0, stopping the music.