Hi, I currently have a stat tracker system.
Everytime a player completes a game, it tracks their stats and adds it to a table.
I show the player’s their 10 most recent stats, so I basically iterate from the 1st to the 10th index of the table and do whatever’s needed with each one.
It works fine until the player’s completed more than 10 games, since table.insert is inserting from the end of the table, my check doesn’t get past 10.
I’m looking for a way to insert from the 1st index and essentially shift back all other entries by 1, preferrably without the need to iterate through each one and perform an operation on it.