How do I load the local players appearance on an npc?

Hello, I am trying to put the local players avatar appearance on a basic r6 block rig how would I do this?

11

RobloxScreenShot20210516_113207017|690x357

4 Likes

Look into Humanoid:ApplyDescription and Players:GetHumanoidDescriptionFromUserId

pw3iwp_88201

local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local player = Players.LocalPlayer

local desc = Players:GetHumanoidDescriptionFromUserId(player.UserId)
local dummy = ReplicatedStorage:WaitForChild("Dummy2"):Clone()
dummy.Parent = workspace

dummy.Humanoid:ApplyDescription(desc)

It has a few caveats:

3 Likes

where are you putting said local script?

The snippet I gave was in StarterCharacterScripts, but really it can go anywhere that is sent to the client. i.e. a part in the workspace, a tool, StarterPlayerScripts, etc.