adjust the slider to control the volume

I set a music game-object on main scene.
I want to set a Slider on other scene.
how can I adjust the slider to control the volume ?

Try using:

var volume : float = 0.5f;

as a variable and have the slider change the value.
and the have this line run when user clicks apply:

AudioListener.volume = volume;