Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 3 years ago

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

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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!

0
Did a bit of an oopsie there TheOnlineItalian213 99 — 3y
Ad

Answer this question