Why doesn't this sound repeat? Autofire

I can’t figure out why this sound is not repeating:

#pragma strict
@script RequireComponent(AudioSource)

var fireRate : float = 0.1;
var gunShot : AudioClip;
private var nextFire : float = 0.0;

function Update () {

	if(Input.GetMouseButtonDown(0) && Time.time > nextFire) {
	nextFire =  Time.time + fireRate;

Because you use Input.GetMouseButtonDown(0), which only returns true once. You should instead use Input.GetMouseButton(0).

try going clicking the gun or whatever’s making the sound and find audio and there should be an option the says loop uncheck and put play on awake. hope this helped