How can I stop the player from picking up tools?

Hello!

I am trying to stop the player from picking up tools.
How can I do that?

Thanks in advance,
-Mehdi

1 Like

You could try setting the CanBeDropped bool to false. That way the player cannot drop the tool, and thus it cannot be picked up. Alternately, you could search the player’s backpack, and remove any tool that is inside. Someone might be able to suggest a more efficient method. Let me know if this works in your case, or not.

2 Likes

No, the tool starts on the world, not in a player’s inventory. And I can’t remove the tool.

Alright, how about using AncestryChanged, and then deleting the tool if it is a child of the player’s backpack?

2 Likes

Sadly, I can’t remove the tool, as I was planning to make it pickable after, but I need it to be non-pickable at one moment.

Well you could handle the tool to be picked up, without using the default Roblox system for doing so. Perhaps detecting a collision on an object using the same mesh as the tool. If the player meets the specific conditions, add the tool to the inventory, if not, do nothing.

2 Likes

By pick up do you mean off the floor or from your backpack? If its from the backpack then you can make your tool require handle, parent handle to nil, wait, then reparent it to handle. It makes the tool unusable and you wont even be able to tell it’s equipped. If you meant off the floor, remove TouchInterest from the handle.

14 Likes

Seems like a good idea, but someone found the solution below I think.

2 Likes

This solves my problem! Thanks you alot!

3 Likes