PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

CanBeDropped

Tool

bool

The CanBeDropped property controls whether the player can drop the Tool.

If true, when the backspace button is pressed the tool will be parented to the Workspace and removed from the player’s Backpack. If false, the when the backspace button is pressed the tool will go back to the player’s Backpack and it will not be dropped.


Code Samples


Meow Tool

The code below inserts a Tool into the Players/LocalPlayer|LocalPlayer's Backpack that cannot be dropped because it’s Tool/CanBeDropped property is set to false.

When the user clicks their left mouse button, the tool is activated and the script prints “Meow”.