What are you trying to do? Loop through the values and print them? Well, If it’s that, You can try doing:
for Index, Value in pairs(YourObject) do
-- Should print out the order/index and then the Value.
print(Index, "|", Value)
end
Make sure that you actually put the Values index as the Letters and not as a number.
Basically what i mean is this:
local SomeTable = {}
SomeTable.X = 1
SomeTable.Y = 2
SomeTable.XD = 3
SomeTable.YD = 4