default { on_rez(integer start_param) { // Restarts the script every time the object is rezzed llResetScript(); } changed(integer change) { if ((change & CHANGED_REGION) || (change & CHANGED_TELEPORT)) // Resets the detected list every time the object is teleported { llOwnerSay("Teleport Detected - Detected list Reset"); Detected_UUIDs = []; state three; } } state_entry() { llSetObjectDesc(""); // llOwnerSay("Count: " + (string)GetKeyCount()); state one; } }