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

How to get R,G,B of a Color3 value?

For example, with Color3.new(1,0,1), I want to be able to get each of these 3 numbers inside it. So how?

2 comments

0

I believe its print(Color3.r), print(Color3.g), print(Color3.b)

0

thanks, this was a very short and unnesscessary question

1 answer

✓ Accepted answer

Color3's have r, g, b properties You can get individual Color3 components with the r, g, b properties. For example, if you wanted to get only the red colour component of your part:

print(part.Color.r) -- # example

Would get the red component of the colour. And you would do the same with the g and b .

4 comments

0

Does Color and Color3 work the same way?

0

part.Color is a Color3 value.

0

nice

0

I’m interested in how this got five upvotes, this is a casual answer

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