Volume Slider... What a headache

Ok so I am not going to pretend that I know what I am doing here as the last few hours have left me with nothing but a headache.
What I have done is created a very simple menu that have three functioning buttons. The button that I want to focus on is the “Settings” button takes me to the “Settings” screen and on this screen I am working on a volume slider. <== This is where the headache stars
I have follow a tutorial that I found on youtube to try and get a volume slider working. Well needless to say I can not get it to work.
Well instead of just giving up there I followed the same tutoral but this time I created a volume slider on my main menu page and just like magic it started to work.
Is there something that I am do wrong or is it
Tutorial: [https://www.youtube.com/watc

//This is the working code from my main menu.

using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
using UnityEngine.UI;

// When makeing buttong make sure you user the following command
// public void ##button name##(string newGamelevel)
// Dont know why this works but it does

public class ButtonManager : MonoBehaviour
{
    public void NewGameBtn(string newGamelevel)
    {
        SceneManager.LoadScene(newGamelevel);
    }
    public void SettingGameBtn(string newGamelevel)
    {
        SceneManager.LoadScene(newGamelevel);
    }
    public void ExitGameBtn()
    {
        Application.Quit();
    }
{

    public void VolumControl (float volumeControl)
        audio.volume = volumeControl
}

}

h?v=anbuZoWroIo&t=3s](https://www.youtube.com/watch?v=anbuZoWroIo&t=3s)

Hey RavensStealth,

There’s a few steps to this process which will involve some research, but it’s worth it! To give the user a slider to adjust volume at runtime, I suggest;

The script to link these two will look a lot like the one you have shared already.

If you’re looking for a very simple implementation, a single audiosource may be all you need. In which case, you could hook up your slider to the “VolumControl” function you’ve already made, and declare a public AudioSource audio; variable in your code to connect to the audiosource that’s emitting sound.