Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a tool that is always equipped?

Asked by 5 years ago

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?

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 isaaclabrador02 0 — 1y

1 answer

Log in to vote
0
Answered by
gullet 471 Moderation Voter
5 years ago
Edited 5 years ago

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.

Ad

Answer this question