I have tried over and over again!
1 2 3 4 5 6 7 8 9 10 | if(w.object1.key == "key") and (w.object2.myName == "box") then if (destroyNow = 1) then w.object2:removeSelf(); else changeIt() end end end |
destroyNow = 1 should be:
destroyNow == 1
Also,
You have an extra "end" (which I assuming is a typo when posting).