Print Your entire Inventory
Key RequiredUniversal

Print Your entire Inventory

Universal Scriptbecausewhyybecausewhyy 387 views 7 executesUpdated Apr 28, 2026
Unrated
00
Lua Script•38 lines (836 chars)
local player = game.Players.LocalPlayer

local function getAllItems()
    local items = {}

    local function scan(container)
        if not container then return end
        for _, v in pairs(container:GetChildren()) do
            if v:IsA("Tool") then
                items[v.Name] = (items[v.Name] or 0) + 1
            end
        end
    end

    scan(player:FindFirstChild("Backpack"))
    scan(player.Character)

    return items
end

local function printSortedInventory()
    local items = getAllItems()

    local list = {}
    for name, count in pairs(items) do
        table.insert(list, {name = name, count = count})
    end

    table.sort(list, function(a, b)
        return a.count < b.count
    end)

    for _, item in ipairs(list) do
        print(item.name .. " x" .. item.count)
    end
end

printSortedInventory()

Features & Information

prints ur entire backpack/inventory and says how many of that thing u have
#open source#backpack

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts