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

How to load a character appearance for an NPC in-game?

Asked by
Ap_inity 112
6 years ago

I've tried to do this many times, I've looked it up on the wiki, and I actually tried some methods myself. I've found absolutely nothing.

Here's what I made earlier, didn't work at all.

01spawn(function()
02    while wait(15) do
03        local mdl = workspace.CharModel
04        local char = game.Players:GetCharacterAppearanceAsync(117099978)
05 
06        mdl:Destroy()
07        char.Parent = workspace
08        char.Name = "CharModel"
09    end
10end)
0
is it appearing in the hierarchy? if so, you might wanna set the humanoidrootpart cframe. brokenVectors 525 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

You might want to look inside the object that the function loads: it's not a self contained character, it's only accessories and meshes.

This function returns a Model containing the assets which the player is wearing, excluding gear.

It doesn't say "Loads the player's character."

Ad

Answer this question