Trying to get used to tables, and this won't work.
color = {"Bright red","Bright green","Bright blue"}
rand = math.random(1,#color)
for i=1,3 do
script.Parent.BrickColor = BrickColor.new(color[rand])
wait(1)
end
The brick starts out as black and changes to one of the colors and stops. No error in output, and I've tested multiple times. It should be changing colors 3 times, and it can't be changing to the same color 3 times in a row because I've tested it over 10 times and it always stays one color.

5 comments
You're on the right track, within those brackets "[]" you would want to put math.random(1,#color) 1 is the index value of the first object in color, and #color is the amount of objects in color. math.random will then in this case chose a number between 1 and 3.
I did what you said and it worked, so I'm guessing you can't use variables inside the "[]"?
You can use variables anywhere you want.
Why is it that when I use the variable "rand" inside the brackets it doesn't change colors 3 times but when I use math.random(1,#color) inside the brackets it works?
You are already setting rand to a number before you do the loop so in that loop rand is already set to that number, to make rand a different number each time you would declare rand = math.random(1,#color) inside your for loop :3