Run it
Copy the script and paste it into your executor.
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})
.(list, (a, b)
a.count < b.count
)
_, item (list)
(item.name .. .. item.count)
()prints ur entire backpack/inventory and says how many of that thing u have

Universal