Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I hold Color3 values in a table?

Asked by 9 years ago

For example:

1rbg = {(0, 0, 1)}
2--Returns this error below
3Error in script: ')' expected near ','

2 answers

Log in to vote
0
Answered by
woodengop 1134 Moderation Voter
9 years ago

Implant Color3.new() to your array


1rbg={Color3.new(0,0,1)}
2 
3print(rbg[1])
Ad
Log in to vote
-1
Answered by 9 years ago

Well, I was half way through making this work when ROBLOX crashed >=/, but here's what I got:

Create the table having the Color3.new included then do as so

01Colors = {
02Black = Color3.new(0,0,0);
03White = Color3.new(255,255,255)
04}
05 
06while true do
07wait (2)
08(Color3 reference) = Colors.Black
09wait (2)
10(Color3 reference) = Colors.White
11end

Answer this question