Thank you for noticing, i guess i didn't notice that.
Help with Inventory system!
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Help with Inventory system!
Reading it again, I should've said "the way that the loops are used", without mentioning the index variables, because you can have a totally useful loop where the index variable happens to not be used.
For example:
Code: Select all
-- Saving time by both emptying a table and calling a method of its items.
for unusedVariable = 1, #myTable do
local myItem = table.remove(myTable)
myItem:method()
(...)
end
Who is online
Users browsing this forum: Ahrefs [Bot] and 4 guests