if #getOnlinePlayers() < 20 then
doTeleportThing(cid, getTownTemplePosition(1))
else
doTeleportThing(cid, getTownTemplePosition(towns[math.random(#towns)]))
end
i gave him the idea.you gave him the scriptCode:if #getOnlinePlayers() < 20 then doTeleportThing(cid, getTownTemplePosition(1)) else doTeleportThing(cid, getTownTemplePosition(towns[math.random(#towns)]) end