#error PlayerGui.Inventory.InventoryScript:130: attempt to index nil with 'Text
35 messages · Page 1 of 1 (latest)
ok
When im scripting, the attempted to index with nil errors usually appear when something is wrong with a variable
what does scanItems() do?
so from what i understand scanItems returns a table
and that for loop checks that table
ye
this must change CountDisplay text
ok
CountDisplay = game.StarterGUI:WaitForChild("Inventory"):WaitForChild("invFrame"):WaitForChild("Items"):WaitForChild("CountDisplay")
or something along the lines of that
or if CountDisplay is a child of invItem
invItem:WaitForChild("CountDisplay")
my bad, invItem is a table and tables dont have WaitForChild()

im perplexed
so what i see it prints: invItem
ye
my money is on CountDisplay not being related to invItem

i think i cant help you here
** You are now Level 5! **
since im pretty new