how can I change this NPC head colour?
So basically I'm trying to change the npc's head color. Though for some reason the game isn't recognizing the properties in the players Body Color. Could I get a better understand of how to get that. And btw I'm using Remote events in this so the act like the variables are in the actual server script but in the local.
Scirpt
1 | local guy = game.Workspace.NameHere |
2 | local Black = script.Parent.Parent [ "Skin Colour" ] .Black |
3 | local BlackC = Vector 3. new( 90 , 45 , 0 ) |
5 | game.ReplicatedStorage.Black.OnServerEvent:Connect( function (Player,Black,guy,BlackC) |
7 | guy [ "Body Colors" ] .HeadColor 3 = Color 3. new(BlackC) |
Thanks.