var i; for (i = 0; i <= menuSize; i++) { with (op[i]) instance_destroy() } for (i = 50; i <= 54; i++) { with (op[i]) instance_destroy() }