Need help figuring out how to create an advanced customization system

I want to make it so you can click on any part of your character, and it will change to that color depending on where the slider is. I am working on it and used raycasts, but they aren’t working out well. Should I use click detectors?

(I have tried using raycasts, but those were pretty confusing to me)

here is an example of what I want to do, minus the actual coloring

Well we can’t help you without seeing the code that isnt working, unfortunately