How can I affect the cooldown of a module for different players?

This is probably a stupid question, but I want to have a command/setting that gives you no cooldown on attacks, but my attacks are handled in a module script using an attack function. The cooldown is declared inside the script, so I’m not really sure how I could make a secure way to have different cooldowns for different players without it being exploitable.

I’ve had the idea to use :setAttribute but I’m pretty sure that could be easily exploitable in alot of ways.

In your server-side script, just use a table. The player is the key in the table and points to the cooldown amount. Only caveat is the need to clear the player out of the table when they leave the game.

Thanks! and for replying so quick.

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