This is personally useful for me since the quick asset downloader is currently broken. I’m also really bad at using R15 in Blender. If there’s another method to get the R6 of a user who wears R15 please let me know!
Hey maple, place a npc in the workspace like this,
and then run this code on it.
local NPC = script.Parent
local userId = 6840869
function DressNPC()
for i,v in pairs(NPC:GetChildren()) do
if v:IsA("Hat") or v:IsA("Pants") or v:IsA("Shirt") or v:IsA("ShirtGraphic") then
v:Destroy()
elseif v:IsA("BodyColors") then
local b=BrickColor.new()
v.HeadColor,v.LeftArmColor,v.LeftLegColor,v.RightArmColor,v.RightLegColor,v.TorsoColor=b,b,b,b,b,b
end
end
for i,v in pairs(game:GetService("Players"):GetCharacterAppearanceAsync(userId):GetChildren()) do
v.Parent=NPC
end
end
DressNPC()
This is what i use to get someone’s appearance for npc’s
I think this code is broken for R6 character meshes. You will need to check if any of the objects returned by GetCharacterAppearanceAsync is a Folder and only parent the contents to the character if it is a CharacterMesh.
See this for information on the new body parts format:
I’ve got a module that can be used to create R6 or R15 characters given a UserId using GetCharacterAppearanceAsync. It also does all the welding logic for hats locally so it can be used for local only NPCs.