local createpos = {x=971,y=994,z=10} local topos = {x=880,y=1003,z=7} local msg = "Last man standing event TP has now closed! It will open again in 45 minutes!" 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) local tp = doCreateItem(1387, 1, createpos) doItemSetAttribute(tp, "aid", 37720) doBroadcastMessage("Last man standing event TP is now open!\nCatch the teleport within "..timetoclose.." seconds quickly! Located in Events.") addEvent(remove,timetoclose*1000) return true end