Prevent spam input for shooting

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.


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