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

How can I check a players backpack?

Asked by 10 years ago
game:GetService("BackPack")

The above is just something I thought of maybe working. I am trying to make my own custom backpack, or inv for items that are in backpack to be stored there. I have removed ROBLOX's custom backpack, and made it so that when you click, or pres no 1, 2 etc it takes you to the slot. I just need to figure out how to make it check the players backpack. Something that just gets the stuf in a players backpack.

1 answer

Log in to vote
1
Answered by 10 years ago

Use a LocalScript.

local plr = game.Players.LocalPlayer
local tools = plr.Backpack

for i =1, #tools do
    local tool = tools[i]
    --Create custom GUI element here for the tool.
end
0
I am currently using a localscript NinjoOnline 1146 — 10y
0
what is the cutsom GUI element? I have made my own backpack gui, and all that, but it only holds 5 slots NinjoOnline 1146 — 10y
0
NinjoOnline, where it says to create a custom GUI element, I think you need to write where the tools go in the GUI. Nifer2 174 — 10y
0
(What Nifer2 said) NoahWillCode 370 — 10y
Ad

Answer this question