So basically I want to store a few RGB values into an array as I did below, but when I try to access them it comes back as nil.. What is a better way to do this?

local rgbs = {
	Red = "238, 82, 83",
	Blue = "84, 160, 255",
	Green = "29, 209, 161",
};

print(rgbs[1]) -- Returns nil

3 comments

2

print(rgbs.Red)?

0

Thanks... I totally forgot about that! Lol I don't use arrays much

0

Np. :P