Currently in my game, you can click however fast you want, and every time you click, a bullet with spawn. I want it to make the player wait, lets say, half a second to fire another shot.
I create this and dont know why it is not working.
The variable BulletDelay is set to 0 by default. When you fire, it is set to 1. This should make it so that the player can not shoot. Then once the BulletDelay is set to one, it adds 1 to DelayAmount. Once DelayAmount is 5 then it sets the BulletDelay back to 0 letting the player fire again.