How can I make it so I can't spam bullets? (Add a cooldown time to gun?)

In my game “Water Gun Fun,” you have to shoot another player 3 times to win. Only problem? It’s way too easy! You can just spam your water gun until you win. I want to make it so you can’t just keep shooting over and over and just spam the shoot button. Does anyone know how I can add a cooldown time?

BTW here is a link to the game if you need it.

make a switch that turns itself off and emits everything, then add a timer to turn it back on


Thank you so much. I’m fairly new to this so I don’t know much more than the basics lol.