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 that is always equipped?

I'm working on a game that requires a tool that is always equipped and cannot be unequipped. I don't really know how to make a script that can do that specifically. Any tips?

1 comment

0

You can put a localscript in your tool and copy and paste this wait(0.001) --Place this in a Tool, prevent it form being unequipped. EnableBackpackGui = false -- false disables Backpack gui, true enables it. Weapon = script.Parent.Name local player = game:GetService("Players").LocalPlayer local mouse = player:GetMouse(); local char = player.Character local tool = player.B

1 answer

✓ Accepted answer

With SetCoreGuiEnabled you can disable the backpack interface.

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,  false)

You can then force people to equip a Tool with EquipTool and you might want to set CanBeDropped to false, to prevent people from pressing backspace and dropping the tool. You can also check out RequiresHandle, but perhaps it's not relevant to your specific question.

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