I have a button that's a picture of a speaker named "Sound". When someone clicks it, it will turn to the animation version of the speaker with a red circle and line through it over it and all game sounds should become muted.
If someone clicks it again, the speaker image should return to normal and the sounds of the game should become audible again but somehow my code is not working.
Button animations are:
and the code is currently:
Can anyone tell me why this isn't working or provide links to a helpful tutorial on the subject?