Keuvyn T. 3 Report post Posted December 18, 2016 Good afternoon guys from PKO, DEV: I'm trying to add this map However, I'm having trouble with the function: Function Instance: AllDead (copy, waveid) If (Instance.waveKill [copy] [waveid] == nil) then Return 0 End Local killed = Instance.waveKill [copy] [waveid] If killed == table.getn (Instance.monsters [copy] [waveid]) then Return 1 End Return 0 End The problem is that when all mobs are on the wave they are dead, the wave does not change. The ctrl.lua function reads as follows: If (Instance: AllDead (copy, waveid) == 1) then How can I fix it? Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted December 20, 2016 Common thing to check is: errors on console and on logs, do you get any errors on one of those? Quote Share this post Link to post Share on other sites