local createpos = {x = 966, y = 999, z = 10} -- Where tp will appear local topos = {x = 1556, y = 1298, z = 7} -- Where will the Teleport take you local msg = "Race teleporter is now closed. It will open again in 1 hour!" local timetoclose = 120 -- in second local function remove() local tp = getTileItemById(createpos,1387).uid if tp ~= 0 then doRemoveItem(tp) doBroadcastMessage(msg) end end function onThink(interval) doCreateTeleport(1387, topos, createpos) doBroadcastMessage("Race teleporter is now open!\nCatch the teleport within "..timetoclose.." seconds! Only 4 players can participate.") addEvent(remove,timetoclose*1000) return true end