Hello! I was working on a script for a friend where the map has to change on a certain time, but if someone is doing a quest, they don't get teleported to the new town.
Here is the script:
local config, new = {
minTownId = 1,
maxTownId = 3
}, 0
local t = {
fromPos = {x = 1004, y = 1023, z = 7}...