BrickColor.new(RGB) sometimes returning fake colour

brickcolor.new seems to be giving the wrong colour, i am trying to get the NAME of the colour value: 5,18,204 - but its returning me WHITE!:
image

Actual colour would be dark blue?
image

BrickColor.new is supposed to be a string (If i remember), Have you tried just Color?

Part.Color = Color3.fromRGB(5,18,204)
print(Color3.fromRGB(5,18,204))

Edit: doesnt seem to work:

script.Parent.Color = Color3.fromRGB(5,18,204)

print(script.Parent.BrickColor)
1 Like

im needing to get colour from rgb not part, the statement you have given me just returns the colour 3 value in division of 255.

the thing is, it seems to work most of time, like here:
image

Can you try this?

The rgb colors are a value from 0 to 1, not 0 to 255.

The reason your getting white is because all the values are maxed out, which would mean a white color.

1 Like

Thats Color3.new, not Color3.fromRGB

1 Like

Im talking about brickcolor.new

2 Likes

thanks, it was this

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.