I am making a game and I need to have a tool but I dont want to have the player to unequip the tool, how do I make it work?
Also I want it to not be able to show up in the toolbar how do I do that?
I am making a game and I need to have a tool but I dont want to have the player to unequip the tool, how do I make it work?
Also I want it to not be able to show up in the toolbar how do I do that?
In this case, you would want to first disable the backpack in a local script using the startergui method, like this:
game:GetService("StarterGui"):SetCoreGuiEnabled("Backpack",false)
From there if you had to equip the tool you could use the humanoid EquipTool() function to force the player to equip the tool. Note that this can be done on either the server or client but if you want to be 100% certain all players are getting it equipped you should probably do it from the server.
humanoid:EquipTool(tool)
Forces the equip
while true do
wait()
if script.Parent.Parent.Name == "Backpack" then
script.Parent.Parent = script.Parent.Parent.Parent.Character
end
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
Are there going to be any tools other than this one because in that case you can't hide that single tool in particular from the toolbar without hiding everything else. To do that you would have to put the tool somewhere that isn't the Backpack.
No there is only 1 tool
Okay then Wafflecow321's answer should work.