Trigger login(connectionId, userId, user, placeName, anchorName, queryTable) if user.last_place ~= nil then world = GetWorld() all_places = world.places for _, thisPlace in ipairs(all_places) do if thisPlace.name == user.last_place and thisPlace.instanceId == 0 then user.returning_user = 1 UserGotoPlace(user, thisPlace) return end end end end Trigger logout(connectionId, userId, user) thisPlace = user.place user.last_place = thisPlace.name user.last_placeX = user.x user.last_placeY = user.y end