How To Get Player's Backpack Tools In A Table

Hi, i was thinking is there was any form to get player backpack tools name in a table.

i was trying with print(player.Backpack) or made a table with the items but unfortunately i don’t get it.

any help is welcome! thanks for reading
Have a Good Morning!, Good afternoon!, Good Night!

Use the :GetChildren() function.

1 Like

Whoosh

Sample code:

--Random Server Script
function GetBackpack()
    for _, Tool in pairs(Player.Backpack:GetChildren()) do
        print(Tool.Name)
    end
end
1 Like