Hello, I am trying to get the seperate HSV colors from a part, but I keep getting the constant error of
‘attempting to call a nil value’.
Here is my initial code:
h, s, v = Color3:ToHSV(script.Parent.Color)
print(h,s,v)
Any ideas?
Hello, I am trying to get the seperate HSV colors from a part, but I keep getting the constant error of
‘attempting to call a nil value’.
Here is my initial code:
h, s, v = Color3:ToHSV(script.Parent.Color)
print(h,s,v)
Any ideas?
Maybe this could help
It’s Color3.ToHSV(color)
or color:ToHSV()
not Color3:ToHSV(color)
.
Color3:ToHSV(color)
is basically Color3.ToHSV(Color3, color)
.
Thanks for this, however, my goal is now that I have the HSV colors, to make a part darker, what should I do? I think it is something to do with the V color, but how do I make a part “darker” in color with HSV colors?
You decrease the ‘V’ component of the color expressed in ‘HSV’ (hue, saturation, value).
Color3.fromHSV(0, 0, 1) --White.
Color3.fromHSV(0, 0, 0) --Black.
Ah thanks it worked. I didn’t know it had to be between 0-1, I did +20 which gave me awful results.