function getFree ( src ) local x,y,z local players = getElementsByType( "player" ) for k,v in players do --Note 1 x,y,z = getElementPosition( v ) x = math.floor(x / -4 + 0.5) --Note 2 y = math.floor(y / -4 + 0.5) z = math.floor(z / 3 + 0.5) if (x >= 1) and (x <options>= 1) and (y <options>= 1) and (z <= options.z) then --Note 3 src[x][y][z] = 2 --Note 4 end endendfunction copyTable ( src, des ) for k,v in pairs(src) do if (type(v) == "table") then des[k] = {} copyTable(src[k],des[k]) else des[k] = v end endend