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

How can I check a players backpack?

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

✓ Accepted answer

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

4 comments

0

I am currently using a localscript

0

what is the cutsom GUI element? I have made my own backpack gui, and all that, but it only holds 5 slots

0

NinjoOnline, where it says to create a custom GUI element, I think you need to write where the tools go in the GUI.

0

(What Nifer2 said)

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