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

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

Asked by 10 years ago

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

Log in to vote
1
Answered by 10 years ago
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!

0
Alright. Thanks. TheRings0fSaturn 28 — 10y
Ad

Answer this question