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

How do I convert a Color3 Value to a RGB Value?

So, let's say I would want to get the Red value from a Part. I would use this code:

print(game.Workspace.TestPart.Color.r)

And it would output a number like "0.1234321" or something like that.... But how would I make it so that it prints out a RGB value from 0 - 255 instead of a Color3 Value 0 - 1?

1 comment

0

Do you mean BrickColor to RGB value?

1 answer

✓ Accepted answer

Just multiply the value by 255.

print(game.Workspace.TestPart.Color.r*255)

1 comment

0

Oh wow, didn't think of that... Thank's!

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