How can code see the number of items that are in an array instead of individually calling each 1?
Use the length operator:
local t = { "a", "b", "c" }
print(#t)
1 Like
Would you know hwo to create multiple rows in an array/vectoR?
You can assign arrays as entries within arrays:
local t1 = {“A”, “B”, “C”}
local t2 = {1,2,3}
local t3 = {t1, t2}
Do you mean like a dictionary?
local BrickProperties ={
BrickColor = “Bright green”;
Size = Vector3.new(5,5,5);
Transparency = 0.5;
}
script.Parent.BrickColor = BrickProperites.BrickColor