in the case of the example script you could do it like this instead:
x={1,2,3,4,5,6,7,8}
for i = #x,1,-1 do
if x[i]>1 then
table.remove(x,i)
end
end
in the case of the example script you could do it like this instead:
x={1,2,3,4,5,6,7,8}
for i = #x,1,-1 do
if x[i]>1 then
table.remove(x,i)
end
end