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

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

Asked by 3 years ago

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

Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
3 years ago
Edited 3 years ago

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

0
Also if you wonder, the correct capitalization of Brickcolor is "BrickColor" without quotation marks. Xapelize 2658 — 3y
Ad
Log in to vote
0
Answered by
NGC4637 602 Moderation Voter
3 years ago

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.

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

BrickColor:

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

Color:

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

Answer this question