Parsing error CS8205,Parsing Error CS8205

A parsing error occurred when i first ran this script

using UnityEngine;
using System.Collections;

public class Gunshot : MonoBehaviour {
	public AudioClip Gun;


	private AudioSource source;


	void Awake () {
		
		source = GetComponent<AudioSource>();
	}

	public float timeLeft = 5.0f;

	public void Update()
	{
		timeLeft -= Time.deltaTime;
			
		if (timeLeft <= 0.0f)
		{
				source.PlayOneShot(Gun,hitVol);

If that’s the complete script, your missing three curly braces } at the end.

If that’s not the complete script, please post the complete script!

Your code should be formatted like this with all public or
private statements at the top and with closing brackets:

   public AudioClip Gun;
 
     private AudioSource source
     public float timeLeft = 5.0f;
 
     void Awake () {
         
         source = GetComponent<AudioSource>();
     }
 

 
     public void Update()
     {
         timeLeft -= Time.deltaTime;
             
         if (timeLeft <= 0.0f)
         {
                 source.PlayOneShot(Gun,hitVol);
         }
}
}