I have figured away to mute every sound, but now I'm struggling with how to toggle it back.
I solved it by naming every sound like this:
Then when the play function calls the sound I used:
varMute & varPlayer & "Sound" & floor(random(1, 3))
This worked very good, until I try it with the button.
You can see how I did the button on the picture over. But it wont work at all, not with every variable in the world.