Play Animation and Sound when enter collider

Hey guys, I’ve a problem. I have the following script added to a collider but when the player enters the collider nothing happens…’

I tried the two following scripts:

//SCRIPT ONE

#pragma strict

var playerInArea : boolean = false;
var jumpscare01fx : AudioClip;

 
function OnTriggerEnter() {
    playerInArea = true;
}
 
function OnTriggerExit() {
    playerInArea = false;
}

if(playerInArea == true) {
animation.Play("jumpscare01");
PlaySound();
}

function PlaySound(){
audio.clip = jumpscare01fx;
audio.Play();
}

//SCRIPT 2

#pragma strict

var playerInArea : boolean = false;
var jumpscare01fx : AudioClip;

 
function OnTriggerEnter() {
    playerInArea = true;
}
 
function OnTriggerExit() {
    playerInArea = false;
}

if(playerInArea == true) {
animation.Play("jumpscare01");
audio.Play("jumpscare01fx");
}

Script one simply just doesn’t do anything and script 2 gives the following error:
BCE0023: No appropriate version of ‘UnityEngine.AudioSource.Play’ for the argument list ‘(String)’ was found.

www.google.com/search?q=Play+Animation+and+Sound+when+enter+collider