so i made a simple script which changes a value to player items amount.
local value = script.Parent
local plrname = game.Workspace:WaitForChild("PlayerName")
local plr = game.Players:WaitForChild(plrname.Value)
local inv = plr:WaitForChild("Inventory")
while true do
wait(0.5)
value.Value = #inv:GetChildren()
end
why its not working

5 comments
inventory is a custom folder
i changed backpack to the custom inventory and still not working
Is it a ServerScript?
umm no idea what serverscript is im kinda new at scripting but i guess its a normal script so - yes
Then idk why it's not working.