Loop with no exit condition — will hang the game
Updated 4mo ago
Reference
Why: Function '{fn}' contains a ForLoop or WhileLoop whose condition is never reached or whose body never updates the counter. The game will freeze when this code runs.
Fix: If WhileLoop: ensure the body modifies the condition variable so eventually the condition becomes false. If ForLoop: check the Index range — Last Index must be >= First Index. Add a Print String of the index inside the loop body so you can see if it's actually iterating.