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:

rbg = {(0, 0, 1)} 
--Returns this error below
Error 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


rbg={Color3.new(0,0,1)}

print(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

Colors = {
Black = Color3.new(0,0,0);
White = Color3.new(255,255,255)
}

while true do
wait (2)
(Color3 reference) = Colors.Black
wait (2)
(Color3 reference) = Colors.White
end

Answer this question