this work
local col1 = matrix[row] [line]
local col2 = matrix[row+x][line+y]
newMatrix = matrix
newMatrix[row][line] = col2
newMatrix[row+x][line+y] = col1
print ("first : " .. newMatrix[row][line])
print ("second : " .. newMatrix[row+x][line+y])
and this not work
newMatrix = matrix
newMatrix[row][line] = matrix[row+x][line+y]
newMatrix[row+x][line+y] = matrix[row] [line]
print ("first: " .. newMatrix[row][line])
print ("second after: " .. newMatrix[row+x][line+y])
So, how it can i create a new object (a copy) [import]uid: 209287 topic_id: 36344 reply_id: 336344[/import]