thats because Color3.new() is different from Color3.fromRGB()
Color3.new() ranges from 0,0,0 to 1,1,1 where 0,0,0 is black and 1,1,1 is white
Color3.fromRGB() ranges from 0,0,0 to 255,255,255 where 0,0,0 is black and 255,255,255 is white
probobly but I insert them. the table dosent have values right away because its a level generating kind of game like toh(tower of hell) so each round needs new colours.
First of all, You seem to be missing the fact that BrickColor.Random() exsists.
This function already has random colors in it and will choose a different color for each floor.
Secondly, If you really wanted to manually insert the colors you could just insert them as arrays.
An Example:
local ColorTable = {
Color1 = {R = 255, G = 70, B = 10},
Color2 = {R = 100, G = 50, B = 255},
}
local function GetColor3()
local RandomColor = ColorTable[math.random(1, #ColorTable)]
return Color3.fromRGB(RandomColor.R, RandomColor.G, RandomColor.B)
end
Like Cosmental has said, you will have to serialize the Color3 value. You can do this two ways. Turning it into a string using tostring and then using string.sub to get the numbers or by using what Cosmental said which is the best way to do this.
This code should still work! Just remember to multiply the values by 255 if you plan on using Color3.fromRGB. Typically, values are returned in Color3.new format.