Changing the color of player accessories

I’m making a game where when you’re character gets infected, It removes all the hats except the hair.
I want it to also change the color of the hair to a different color, I’m not quite sure how to do this

That’s pretty impossible if I am not wrong, because the hats have a Mesh and you can’t edit its color only the texture provided. The only solution that I can think of is that you make a texture (any color u want) and assign it to the handle’s mesh like here:

image

image

Then you just have to upload a texture and in the script change the mesh’s texture to the one you want!

2 Likes

You could also simply use a MeshPart instead of a SpecialMesh, remove the texture and change the brick colour, or also change the VertexColor if you use a SpecialMesh and you want to keep the texture.

1 Like

Yes, thank you for reminding me as well about VertexColor, really didn’t think about it. So you could use my method or Nuvola’s method which is better tbh