I want to make a script that colours wigs (Meshes)
But for some reason the hairs don’t colour at all. I am using vertex colour codes i was given because idk where i can find them at all so i am limited to like 10. but i want to change the wig colour when the button is pressed, but for some reason it won’t work?
I have tried different buttons, different colours etc but it’s not working.
if script.Parent.Faces.Visible == false then
script.Parent.Faces.Visible = true
script.Parent.Frame.Frame[“Open/Close”].Text = “Close Skin Tones”
script.Parent.Faces.Title.Visible = true
script.Parent.Faces.Visible = false
script.Parent.Frame.Frame[“Open/Close”].Text = “Open Skin Tones”
local player = script.Parent.Parent.Parent
local f = script.Parent.Faces.Page1:GetChildren()
local bvalue = script.Parent.Faces.BValue
local blackv = script.Parent.Faces.Blackv
for i=1,#f do
local face = f[i]
if face.Name == “face” then
player.Character.Hat.Handle.Mesh.VertexColor = Vector3.new(face.Value)
player.Character.Hat.Part.Mesh.VertexColor = Vector3.new(face.Value)
player.Character.Hat.Union.Mesh.VertexColor = Vector3.new(face.Value)
player.Character.Hat.Mesh.VertexColor = Vector3.new(face.Value)
If i could get pointers or help on how to make this work? All help is appreciated.