Sound stop when entering trigger

I have a sound playing from an object when gameplay starts, but I want the sound to stop when I enter the box collider (trigger) added to that object. Can anyone help me?

var Sound:AudioClip;

function OnTriggerEnter () 
{
    audio.Stop(Sound);
}

`

Is your collision actually happening? Do this:

function OnTriggerEnter (collision : Collision) 
{
    Debug.Log("Collision! Stop playing audio.");
    audio.Stop(Sound);
}

So check if collision happens. If not search for proper collision settings.

Are you sure this script is attached to same object where that AudioSource is? Because if not, then that is the problem.

If it is, then it should work. As Lovrenc mentioned, you could try if Debug.Log gives you any feedback.

Yer, the sound audio source is on the same object as the script
What do you mean when you say Debug.Log?? I’m really new to all this stuff