Not sure if this still is a problem to you considering it was sent nearly a month ago, but if it is, there is a simply way to solve this. You can use “lists” to store every item. For example :
Inventory = {"Sword", "Banana", "Axe"}
and after setting up your list, you can add items to it by doing
table.insert(Inventory, [2], "Pickaxe")
where Inventory is your list, [2] is your position in the table (in this case it would go before banana and after sword, and if you don’t do anything for pos, it defaults to last), and “Pickaxe” is the item you are adding.
if you want to check what is in the 3rd slot you can do
if Inventory[3] == "Axe" then
which means “if the 3rd slot is the axe, then (enter following code on next line).”
And that’s about it!