How to make remote event only fire once every cooldown

Forgot to say, I already added a cooldown server side.

1 Like

I will try and make a “Stop special” remote event.

1 Like

You need to keep the last state the key was in.

if key is down, and last state was up, fire event
set last state to down

if key is up then
set last state to up

1 Like

I made a script that disables the special when a remote event is fired. This wasnt the original problem, and ill mark something else as the solution. I was just letting you guys know.

1 Like

Have you tried the previous code?

2 Likes

Yes, I have. I just marked the other one as solution because it was one of the first replies that worked.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.