Audio.Playoneshot not working.;

I have this script:

var sound : AudioClip;

function OnCollisionEnter (collision : Collision) {

if( == "Box")
audio.PlayOneShot(sound); }

And when i jump on the box with name: “Box” the audioclip don’t play, i can’t hear anything … .

you need to add an Audio Source to the GameObject on which you have attached this Script

Make sure the audio is attached to the game object, and maybe you want to create a Tag called “Box” and set the box to use that tag then use the GameObject.FindWithTag code if it still doesn’t work. Also when you attach the audio to the box uncheck the ‘Play On Awake’ button

I added. I added to Player and also to Box … . What settings i need to put on Audio Source ?