i want to read from an array, but when i try to, it prints the entire array. also trying to index 2 or 3 returns nil
ive searched this up many times, rewording the sentence in many ways while doing so, and couldn’t find a solution. only found posts where the problem was caused by things like putting letters inside of [index] and such.
ok so, gmltmdata is actually an array, that contains the table you wanted like this:
local gmltmdata = {
[1] = { 1, 0.501, 0.501 }
}
there’s no index 2, 3, 4, 5, and so on because it is inside another table that only contains the table you wanted which is index 1.
so, redefine the gmltmdata table: