If your using this code.
local t = {6289,5069,6238,6746}
local pos = {x=911, z=1178, y=7}
function onThink(interval, lastExecution, thinkInterval)
for i = 1, #t do
if getTileItemById(pos, t[i]) then
doRemoveItem(getTileItemById(pos,t[i]).uid, 1)
doCreateItem(t[i+1], 1, pos)
break;
end...