For some reason, I keep getting an error saying the interval is empty when referencing a table.
The problem is the table shouldn’t be empty but it is for some strange reason that I can’t figure out.
Everything works except this one line
This happens if you pass the 2nd argument when it isn’t necessary to do so, in other words the index number at which you’re specifying the new item should be inserted at is already the index after the current final index (end of the array) which is the default position when table.insert() is called anyway.