How do I get these table number values?

Hi, I would like to know how I can get these table number values after I delete a table value. If you dont know what I mean here’s an example what I need:

(I delete the table value and then I need the following numbers after the deleted one)
how do I get these numbers

Does anybody know how I can get the rest of the numbers after I delete a value?

I already got the line which gets the number of the deleted value:

local NumberValue = table.find(Inventory, -- )

How are you removing values from the table?
Are you using table.remove(t, i) or t[i] = nil?

1 Like

I am using table.remove(Inventory, -) to remove a table value

like this:

local Inventory = {}



local NumberValue = table.find(Inventory, -- )
table.remove(Inventory, NumberValue)