Facing some issues with Sky's Face2Face Dynamic Lighting Helper script. Below is the code I'm using, and the error output I'm receiving. Any and all help is appreciated. Code on("change:campaign:turnorder", function(current, previous) { var CharacterIDs = ["-LzCWsWdyejhYzFBZU6h", "-LzCX25xesPTJFoMfrKV", "-LzCX8hSZdAYqWdDEjdK", "-LzCXHURXUb2LHNfVBrn", "-LzCXMUrhgeXPZUJE5XL", "-LzCXQ3z833LxhLTpxxz", "-LzCXgY5dpbtnYLwnubq", "-LzCXtx9fOekWvYWH337", "-LzCY2K2HN6ED7stXOYz", "-LzCWygkWwcKlTjgQ69o", "-LzCs8GPTd3EbwmLV8fQ", "-LzCscF07am_ydenLxRp", "-LzCtAckPwSe3zgJ6ugr"]; var CurrentTO = JSON.parse(current.get("turnorder")); var PreviousTO = JSON.parse(previous["turnorder"]); var Token; var Character; // Save F2F data... if (!state.f2f) state.f2f = {}; if (_.isEmpty(state.f2f)) { _.each(CharacterIDs, function(charid) { Character = getObj("character", charid); state.f2f[charid] = { CharacterID: charid, ControlledBy: Character.get("controlledby") } }); } // Process the turn order... if (CurrentTO.length > 0) { _.each(state.f2f, function(a) { getObj("character", a["CharacterID"]).set("controlledby", ""); }); if (CurrentTO[0].id != -1) Token = getObj("graphic", CurrentTO[0].id); if (CurrentTO[0].id != -1 && Token.get("represents") !== "") Character = getObj("character", Token.get("represents")); if (CurrentTO[0].id != -1 && Token.get("represents") !== "" && Character.id in state.f2f) { Character.set("controlledby", state.f2f[Character.id]["ControlledBy"]); } else { // Return control to all players during npc and custom item turns... _.each(state.f2f, function(b) { getObj("character", b["CharacterID"]).set("controlledby", b["ControlledBy"]); }); } } else { // Turn order tracker is empty. Return control to all players... _.each(state.f2f, function(z) { getObj("character", z["CharacterID"]).set("controlledby", z["ControlledBy"]); }); state.f2f = {}; } // Simple Initiative Tracker (Green Dot)... if (CurrentTO.length === 0 && PreviousTO[0].id != -1) getObj("graphic", PreviousTO[0].id).set("status_green", false); if (CurrentTO.length > 0 && CurrentTO[0].id != -1) getObj("graphic", CurrentTO[0].id).set("status_green", true); if (PreviousTO.length > 0 && PreviousTO[0].id != -1) getObj("graphic", PreviousTO[0].id).set("status_green", false); }); Error Spinning up new sandbox... TypeError: Cannot read property 'set' of undefined TypeError: Cannot read property 'set' of undefined at apiscript.js:23:50 at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:191:9) at apiscript.js:22:11 at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:154:1), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:154:1), <anonymous>:70:8) at TrackedObj.set (/home/node/d20-api-server/api.js:1024:14) at updateLocalCache (/home/node/d20-api-server/api.js:1322:18) at /home/node/d20-api-server/api.js:1612:7 at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560 at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147)