So I have a table where I want to insert a number into and I want it to be in the second key "[2]" but I wanted to know if it's possible.
In lua you can do exactly what you want with the table.insert(t, i, v)
Example:
local t = {} table.insert(t, 2, value) -- Where 2 is the index you are inserting the value to