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

How to make your backpack UI disappear if you're not pressing the number keys?

What I'm talking about, is a script that would go into the player GUI, and if you don't press a number key for 5 seconds, the backpack UI will disappear. If anyone knows how to do this, it'd be appreciated.

1 answer

✓ Accepted answer
game.StarterGui:SetCoreGuiEnabled(1, false)
--[[ Make a LocalScript and place it in the StarterGui. 
	The script is: game.StarterGui:SetCoreGuiEnabled(4, false) 
	Replace '4' with however you'd like it to work like. 
	0	PlayerList (The Leaderboard Gui on the right top of the screen.) 
	1	Health (The Health Bar Gui.)
	2 	Backpack (The Backpack Gui where the tools are stored in.) 
	3	Chat (The Chat Gui.) 
	4	All (All options: 0, 1, 2, 3, 4.) ]]

This script should start you on your way. Wish I could help more!

1 comment

0

Alright. Thanks.

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