sound on button press error + its firing when space is pressed

This Is The Error:

Assets/BulletSound.js(6,28): BCE0023: No appropriate version of ‘UnityEngine.AudioSource.PlayClipAtPoint’ for the argument list ‘(UnityEngine.AudioClip)’ was found.

This Is The Code:

    var GunSound: AudioClip;

function Update(){
if (Input.GetButtonDown("Fire1")){
//shoot the bullet
AudioSource.PlayClipAtPoint(GunSound);
}
}

The error is telling you exactly what’s wrong with your code. There is no overload for the method using those parameters. The method requires an AudioSource and a Vector3 as parameters (and an optional float), and you’re only passing it an AudioSource. Add a Vector3 there and you’re golden.