Per-Player Interaction Cooldown Module
Create a ModuleScript named Cooldowns and call its Try method from interaction handlers. Give each action a key and a minimum interval. The module remembers deadlines separately for each caller and action, and returns remaining seconds to display feedback. Use a Player instance as the caller and call Clear when resetting that player's interactions. Start with a low-stakes use such as a shop greeting.
4h ago