Cooldown for tool activated

wait() is deprecated and replaced by task library.

Also, it’s because every time your event is fired, a new thread is created (think of it as a new script to run whatever that is contained inside the event). This is to prevent any unexpected errors from pausing the entire execution of the script.

To add a cooldown or a debounce, refer to this tutorial.

1 Like