I'm creating a game where a player uses a tool and I don't want them to be able to spam the tool by using exploits and firing the remote event connected with it, how can I create a debounce for each player so they can't do this? (In the least laggy and delayed way)
COMMUNITY QUESTION
Most efficient server side debounce?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
Could add the player to a table on the server and remove them after a certain amount of time.
This would have me using a spawn() function though which is really inefficient right?
The comment above is one of the easiest ways to do it. You dont need spawn to run multiple events of the same function. It's an event, it doesnt (It actually can't even) return anything, so the code doesnt have to wait.
oh ok thanks im dumb