I am trying to make a local script that makes a npc have the same Skin Color as the Player. I dont know how that works. I tried this:
Skin = game.Players.LocalPlayer.Character:FindFirstChild("Body Colors") Skin:Clone().Parent=script.Parent
Its prob all wrong. Can anyone Help?
A way to do this would be:
local plr = game.Players.LocalPlayer local char = plr.Character or plr.CharacterAdded:Wait() local Skin = char:WaitForChild("Body Colors") local SkinTarget = workspace.Dummy local skinTargeted = SkinTarget:FindFirstChild("Body Colors") skinTargeted:Destroy() Skin.Parent = SkinTarget
The local SkinTarget has to be configured to be the NPC's model. hope this helps!