Hello,
I am currently just working on an inventory UI, nothing special however, I am having problems with having my item capacity spit out the number of items currently in the UI.
local MaxItems = 18
for _,ItemObj in pairs(Container:GetChildren()) do
if GameItems:FindFirstChild(ItemObj.Name) then
table.insert(Items, ItemObj)
end
print (#Items,ItemObj)
UI.Frame.ItemCapacity.TextLabel.Text = "Capacity:("..#Items.. "/".. MaxItems..")"
end
Any guidance would be greatly appreciated.
Also, having many more questions to post about tables.

3 comments
In lua the length operator is used to find the length of strings or tables
#you can find out more about it here: https://stackoverflow.com/questions/17974622/what-does-mean-in-luaSo I am basically just generating the number of bytes or what? Sorry, that explanation was a bit over my head.
Do you have any errors?