could anyone help me with fixing error CS1003: syntax and CS1002: expected ?

using System.Collections;
using UnityEngine;

public class Shoot : MonoBehaviour{

public GameObject bullet;
public float delayTime = 8:

private float counter = 0;

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void FixedUpdate()
    {
        if(Input.GetKey(KeyCode.Mouse0) && counter > delayTime)
        {
          Instantiate(bullet, transform.position, transform.rotation);
          counter = 0;
        }
        counter += Time.deltaTime;
    }
}

For one, don’t use logic that isn’t physics related within FixedUpdate, use normal Update. As fixed update can run multiple times within a frame, or not at all within a frame. Update runs once every frame.

and second, you’re looking for

Input.GetMouseButtonDown(0)

as calling mouse within the keyboard is not the way to do it :slight_smile: