So im making a mobile game. I have move buttons. I have a gun that shoots and works fine but I don’t want it to shoot whenever the player presses the buttons. I’ve tried to change the bool to false whenever the button is pressed and it changes it but it still shoots! I’ve tried a countdown to slow it down but it never worked. Please help.

Here is a photo of the gun code. I highlighted the code that makes it shoot.

It seems that you are counting down every frame, instead of every second/tenth of a second. I would recommend you put your counting down in an IEnumerator method:

private IEnumerator Countdown() {
  yield return new WaitForSeconds(0.1f);
  StartCountdown = false;
}

and then implement in:

if(StartCountdown = false && <otherstuff>) {
  Shoot(); // or whatever
  StartCountdown = true;
  StartCoroutine(CountDown());
}