What do you want to achieve? I’m trying to prevent a tool from being activated for a brief cooldown after it has been activated by the player. A debounce variable is an an easy work around, but the Tool.Enabled property should either work as described in the API reference or the API reference should be updated to reflect the current functionality. I’m posting here because I am not currently able to post in the Bug Reports forum.
What is the issue? Tool.Enabled does not prevent the Tool.Activated event from firing as the API reference describes:
It prevents the tool from being activated or deactivated by the
Tool:Deactivatefunctions. It also prevents the
Tool.Deactivatedevents from firing for the tool.
Using the example code block from the API reference, the player can click and the tool activates even if Tool.Enabled is set to False. Tool.Enabled also does not prevent the Tool:Activate() function from activating the tool.
I’ve attached my test project with a modified code sample from the API page which tests Tool:Activate() functionality, and the prints show Tool.Enabled is set to false before Tool:Activate() fires. There is also a tool which is set to Tool.Enabled false from the start which can still be activated by player click.
If anyone with access to post in the Bug Reports forum sees this and is able to confirm the issue, please post there so we can get a fix! Thanks.
ToolTest.rbxl (33.5 KB)