Prevent spam input for shooting

Hello,
I have some problem with shooting spam, I don’t know how to prevent it,
some one can explane to me how can I prevent shooting spam.

Thanks.

Hi create a boolean (shooting) which is set to true and set it false after a timer (or delay)