Hello!
For my main menu, I wanted to load the local player character into an NPC, and make it only locally.
I used the basic script using :GetHumanoidDescription, but it said that I could only use it in server. Then I tried a method using RemoteEvent like this :
You could probably use the :GetCharacterAppearanceAsync(player) method to return a list of items the player is currently wearing, then locally add them to the NPC.
This is how you should apply a player’s character’s appearance to an NPC model.
local players = game:GetService("Players")
local npc = workspace.Dummy
local npcHuman = npc.Humanoid
players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if not player:HasAppearanceLoaded() then
player.CharacterAppearanceLoaded:Wait()
end
local human = character:WaitForChild("Humanoid")
local description = human:GetAppliedDescription()
npcHuman:ApplyDescription(description)
end)
end)
This is working for me with both avatar types (R6 and R15).