The issue is posted in this devforum post
https://devforum.roblox.com/t/instance-getting-moved-randomly-in-a-table/2921127
Developer Forum | Roblox
I’m making a turn-based rpg system wherein the turns would alternate between players and enemies, to do this I have a function that would pre-load the turns into a table and would occasionally update it as the combat progresses How it works: In the table, I set the allies’ index as odd numbers and the enemies’ as even numbers: It works fine...