Triggering doesnt works!

Im tring to make a Horror Game. Ive made a Cube, if the Player goes trough this Cube, a Scream will appear.

But my Code doenst Works!

function OnTriggerEnter(otherObj: Collider){
    if (otherObj.tag == "Player"){
        audio.Play(Scream);
    }
}

function OnTriggerExit(otherObj: Collider){
    if (otherObj.tag == "Player"){ 
        audio.Stop(Scream);
    }
}   

@script RequireComponent(AudioSource)

The Error:

Your pictures was empty, but I’m pretty sure of your issue. audio.Play() does not take a parameter like ‘Scream’. Click on the game object this script is attached to in the hierarchy. You will find an AudioSource component listed in the inspector. You need to drag and drop your audio clip onto the ‘Audio Clip’ variable in the Inspector. Then you can start and stop your audio by calling Play() and Stop() without any parameters.

Your error link wasn’t loading so I’m making a few suggestions to check.

The tag “Player” is requires so, is your player’s tag set to “Player”

Do you have a rigid body on your cube to detect collision?