Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

is it normal for RGB not to work correctly with "brickcolor"?

this has happened to me for a long time, using a rgb (example: 255, 89, 89) and instead of the right color, it appears white, it also happens that i get the color number in the roblox color code table and when i use the rgb of the same color it turns white. This is normal? happens to all players?

NOTE: it only happened with "Brickcolor", I haven't tested it on anything else

3 answers

BrickColor is not Color3 value. You need to use BasePart.Color = Color3.new(255,89,89) instead of BrickColor.

Example: Red, Blue, Green while Color3 value is 255,0,0 and 0,0,255 and 0,255,0.

Not to be confused with Color3, Color3 is a data type involving specific colors with R,G,B values. BrickColor is used for named colors.

Source: BrickColor Color3

1 comment

0

Also if you wonder, the correct capitalization of Brickcolor is "BrickColor" without quotation marks.

BrickColor is for example, "Electric Blue" or "Really Red" etc. Color is an RGB color code like (255,0,0), (0,0,0) or (100,100,100). First color code would make really red, second color code makes really black and third makes a grey color.

So yes, it is normal for RGB to not work on BrickColor.

BrickColor:

Part.BrickColor = BrickColor.new("Medium stone grey")

Color:

Part.Color = Color3.fromRGB(163, 162, 165)

This discussion is preserved as it was. New answers, comments, and votes are closed.