if i have this
Code: Select all
for i,v in ipairs(enemies) do
for ii,vv in ipairs(players) do...
if i have this
Code: Select all
for i,v in ipairs(players) do
for ii,vv in ipairs(enemies) do...
If i spawn less than 5 at a time, they kill each other like they should. Anything over 5 and the above problem happens.
The reason might be obvious but i'm not seeing it.
Thanks in advance
Right click to spawn Enemies
Left click to spawn Players