The title says it all. How do i change the color of a players hair
these depends on the type of hair and if it is a mesh, because if it is a mesh then there is probably a “Mesh Texture” and that cant be color changed
Or you could just change the material/colour with a prompt on the hair like UI click or something
As @STORMGAMESYT7IP mentioned, every accessory, including hairs, have a MeshTexture which don’t allow you to easily change the color of the meshpart. However, there’s a small trick which might help you. When a character is added, wait until all the accessories are loaded, then check for any accessory that contain “HairAttachment” inside of their handle. Then, remove the texture from that handle’s mesh and change the brickcolor of the handle. Keep in mind tho, this is NOT the best method as there can be some accessories that use the HairAttachment but aren’t actual hairs so you would change the color of those too.
The only possible way for every type of hair that I think off is detecting if it is a mesh and then remove the mesh texture, this will make the mesh loose its aspect but you could set it to any color
I recommend using the VertexColor property on the accessory’s mesh so you don’t have to make thousands of textures for thousands of accessories. For example, green bacon hair: