Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Most efficient server side debounce?

Asked by
Plieax 66
4 years ago
Edited 4 years ago

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)

1
Could add the player to a table on the server and remove them after a certain amount of time. ForeverBrown 356 — 4y
0
This would have me using a spawn() function though which is really inefficient right? Plieax 66 — 4y
1
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. RubenKan 3615 — 4y
0
oh ok thanks im dumb Plieax 66 — 4y

Answer this question