How can i make options scene with music on-off switcher button?

I made options scene but i can’t make switcher which switch all the game sounds on-off.
Plz anybody help me.
And how can i make ingame language switcher?

what about with this?

var PlayerCamera: Transform;
    
private var togglesound: boolean = false;

function Update (){
if(!togglesound){
PlayerCamera.AudioListener.enabled = false;
}
else{
PlayerCamera.AudioListener.enabled = true;
}
}

function OnGUI () {
 togglesound = GUI.Toggle(Rect(10, 10, 100, 30),togglesound, "Enable Sounds");
}