How can I make a server sided cooldown/fire rate?

I have been looking for a way to limit the fire rate. The best example I could find was just limiting the speed that you could press a button (Client sided). It needs to be server sided.

Client Sided:

My fire code:

Figured it out. It was just adding the delay code into the authority check.