Is it any way I can access array Y key with index from array x, if the index name is the same on the both of them?
Example of what I'm thinking, that doesn't work;
local arrx = {b = 1, c = 2}
local arry = {b = 2, c = 1}
for i,k in pairs(arrx) do
print(arry.k)
end