I’m making a character creator where the player’s hair colour is using Color3Value
To save the haircolour, I want to split it into 3 different int values so it goes from:
HairColor3Value
HairColorR
HairColorG
HairColorB
How do I get the individual numbers for the R, G and B values in a color3? Using scripts.
local color = Color3.new(123,131,51) -- random color
local red = color.R
local green = color.G
local blue = color.B
Thats how
Wow that was a fast reply! Thank you so much.
Forummer
(Forummer)
#4
Specifically for Color3Value objects you’d index its ‘Value’ property first.
print(Color.Value.R) --Prints the value of the red component (channel) of the Color3 value.
1 Like