Is there actually any way to figure out the primary color of a part as it is ingame? That means if I have a part with a green camo texture (or decal/clothing), it would return the most common color of green on the part?
I’ve seen something done where the color of light in a specific area can be discovered, and I also believe there’s a way to script a eyedropper tool thing, so I don’t know how possible the task in question is.
Alternatively, you can just use the properties of these items since they all have Color3 values and use lerp to get an “average”. This may not be exactly finding the common colour but find a colour in between two different Color3 values
Color1:lerp(Color2,0.5)
^ This gets the colour half way between these two Color3 values.
Roblox does not directly support the inspection of an image. You can use HttpService to request the primary colour of an image from an API that provides this functionality. A quick search of “image primary colour api” reveals many that may be useful to you. Apparently, Google has an API created for image-related shenanigans called Vision.