Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a tool "locked"?

So, I was wondering on how to make a tool in which you can never de-tool it once you have equipped it. Even better, have it equipped from the start. Help is greatly appreciated. thanks.

2 answers

✓ Accepted answer

There's a method to force equip a tool, it's called EquipTool. It's the same thing as parenting the tool to your character.

There's also a property in the tool called 'CanBeDropped' that you can tick off, which won't allow players to drop it. However, if never want the player to be able to put it away, you'd need to weld the handle to your player.

1 comment

0

Thanks a bunch.

local tool = TOOLPATHHERE -- Tool
local player = PLAYERPATHHERE -- Player

player.Character.Humanoid:EquipTool(tool)
tool.CanBeDropped = false

function equipAgain()
	player.Character.Humanoid:EquipTool(tool)
end

tool.Unequipped:connect(equipAgain)

This discussion is preserved as it was. New answers, comments, and votes are closed.