I allowed myself to slightly edit the script and unfortunately it does not work.
local config = {
fromPos = {x=999,y=998,z=7},
toPos = {x=1005,y=1003,z=7},
}
local function pzAutoLeveler(cid, counter)
if isPlayer(cid) then
if(isInRange(getThingPos(cid), config.fromPos...