How would I check for cooldowns on the server using a remote event?

I am handling input on the client and then it is sending information to the server using a remote event

Now how would I check for cooldowns? Cuz there will be a delay while sending information to the server so when I check for the cooldown it won’t be accurate

Like for example

M1 cooldown is 1 second in between each one
Every time player clicks, we fire remote event
But it takes 500 ms for the server to receive it
So now there is 500 ms left for the cooldown to end

When the player clicks again after like 250 ms then we will need to wait for like 500 ms for the server to receive it and then they will m1 because it is past 1 second but now there is 750 ms for the cooldown to finish etc.

And how long it takes to send info to the server will vary like sometimes they can have lag spikes

How would I counteract this?

Maybe I am not making sense

1 Like