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

How do I make where when you choose the item in your inventory, the inventory disappears?

Just wondering, for certain games. Mainly Horror games. You know? Is there a way?

2 comments

0

Are you asking to remove the tool or the actual core GUI where all of your tools are stored?

0

actual core GUI where all of your tools are stored...

1 answer

You would use the Equipped event to know that the tool is equipped and the SetCoreGuiEnabled method to get rid of the backpack GUI. Also, please make sure the script inside the tool is a localscript. As well as to remember that tools always need handles to work.

local tool = script.Parent;

tool.Equipped:connect(function()

	game.StarterGui:SetCoreGuiEnabled("Backpack", false);

end)

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