I’m trying to create a cutscene system, and I’m using a module script for the main tables. (messages, camera parts, etc.)
Whenever I use a for loop, it returns the tables in random order.
I used a print() function to debug.
What the order is supposed to be:
What it’s giving me:
I have looked for solutions on the forums, and the developer hub, but nothing was working. I even tried the table.sort() function and that didn’t work.
The for loop, and the debugging are in a local script, and the tables are in a module script.