audio.Play not working

I do not know why this is not working. can you tell me what I am doing wrong?
here is my code:

var CoinSound : AudioClip;

function OnTriggerEnter(other : Collider) {

if( other.tag == "Player") {

	audio.clip = CoinSound;



I was told this would work but it did not

  • play your sound

  • wait for the sound to finish playing

  • then destroy the object

    yield WaitForSeconds( CoinSound.length );

or… use PlayClipAtPoint or PlayOneShot

audio.PlayOneShot( CoinSound );

Remember to destroy only after everything else is done =]