I'm making wigs for my room and have successfully made a button that changes the vertex colors of the mesh before they are worn:

local variable = script.Parent:WaitForChild("ClickDetector")
Mannequin = game.Workspace.Mannequin
variable.MouseClick:Connect(function()
 Mannequin.Head.Hair.Wig.Mesh.VertexColor = Vector3.new(1.2,1.4,0.7)
end)

How would I go about making it so that this script changes the vertex colors of the wigs after they have been put on any player? Been trying to replace the "Mannequin" with "LocalPlayer" without success.