I tested a script in one of my games and it worked but after copying and pasting it to my other game it doesn't work. Any ideas on("change:graphic", function(obj) { if (obj.get("status_chemical-bolt") !== false) { var plusOrMinus = Math.random() < 0.5 ? -1 : 1; var spray_direction = obj.get("left") + (70 * plusOrMinus); //spray in different directions var token_pos = {x: obj.get("left"), y: obj.get("top")}; var direction = {x: spray_direction, y: obj.get("top")}; spawnFxBetweenPoints(token_pos, direction, "splatter-blood"); } });