Class
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.
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:
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild