Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i make a NPC Skin Color the same as the Player?

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?

1 answer

✓ Accepted answer

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!

1 comment

0

Did a bit of an oopsie there

This discussion is preserved as it was. New answers, comments, and votes are closed.