I simply need to check whether a part’s color is SIMILAR TO a color.
if Part.Color == Color3.fromRGB(205, 201, 166) then
-- Other code
end
This code would check if the part’s color was EQUAL TO a certain color, but I want the script to round it so that it doesn’t have to be EXACT, but close enough. I figured it’d have to do with coverting RGB color to BrickColor, but I don’t know how to do that.
I think you can use the HSL color space to achieve a similar effect. In this color space (Hue, Saturation, Lightness) you can make the lightness a bit looser.