Backpack
A container object that holds a player's inventory. Any Tool in a
player's Backpack will be displayed in their inventory at the bottom of the
screen.
| Memory category | Instances |
|---|
Member index 0
Description
Tool objects in the Backpack container make up the player's
inventory and display as icon buttons at the bottom of the screen. See
in‑game tools for more information.
When a player's character spawns, the contents of StarterPack and the
player's StarterGear clone to Backpack. When the character dies, the
client destroys the Backpack and replaces it with a new one, populated again
with the contents of StarterPack and StarterGear.
To disable the default Roblox inventory GUI and replace it with your own, call StarterGui:SetCoreGuiEnabled() in a LocalScript as outlined in disable default UI.
Backpack can be accessed from both the client and the server:
1 2 3 4 5 6 7 | |