Honestly, I’ve been a bit stumped on how I want to write my automatic fire rate system for my gun. I am worried about sending a server request every time the client shot since I believe that it could generate lots of lag, especially if a crowd started to fire majorly.
The solution in mind I had was to send a remote event (in which the client pressed and held M1), the server would fire a bullet for every second it was held, until running out or M1 was released, which would send another remote event.
It may seem that I am asking for a snippet of code but I am really trying to find examples of what Im tryna do so I can properly cross reference and see if my method is clean and optimized.
any help would be appreciated