I have a table (in modulescript form) which auto update itself to list survivors, zombies and locally also put these in the correct sub folder: Enemies.
Later I use a localscript to simply list the content of these lists:
After playing 1 round, we all return to menu. No targets are listed anymore, yet running this simple code above will cause extreme lag spikes:
As you can see the table is empty, yet printing such a simple thing is apparently an extreme endevour for roblox. I tried deleting the script that prints this table, then the lagspikes disappear. So I’m confident it’s this simple script causing these lag spikes.
What could I be doing wrong? It’s not like other scripts could hog access to the table right?