Question With Arrays

So I’ve been using arrays lately and there’s a situation where I don’t know how to access data and it looks like this…

local Array = {
("String",true,33),
("String2",false,21) 
}

in this situation i don’t see how i would get the value of the string int or bool value.

I am pretty sure you didn’t search for solutions before making this post, because there are already answers for this online. Click this link for the dev hub’s explanation on Arrays.

But anyways you would just go through the array and find it by its index. For example Array[1] would be the first value found in your array. I am pretty sure you would need to make a Dictionary for what it seems like you are trying to do.

4 Likes