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

How Do I Convert RGB to BrickColor?

I'm trying to change alot of parts to a certain color but it changes it to white. I know it has to do with brickcolor and rgb conversion but

for _, v in pairs (game.workspace:GetDescendants())do
    if v.Name == 'A' and v:IsA'BasePart' then 
          v.BrickColor = BrickColor.new(106, 57, 9)
    end
end

Turns it white and yet (0.9,0.6,0.2) is a orangeish color. How do I convert my RGB value to work with brickcolor?

1 answer

Oh I just have to divide my RGB by 255. Thanks to anyone who saw this!

1 comment

0

You could do BrickColor.new(Color3.fromRGB(106, 57, 9))

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