NPC.Parent = workspace
local RandomFriend = PlayerService.Cache[player].Friends[math.random(1, #PlayerService.Cache[player].Friends)]
local Success, HumanoidDescription = pcall(function()
return Players:GetHumanoidDescriptionFromUserId(RandomFriend.Id)
end)
if Success then
HumanoidDescription.Parent = NPC.Humanoid
NPC.Humanoid:ApplyDescription(HumanoidDescription)
NPC.HumanoidRootPart.Anchored = true
else
warn(HumanoidDescription)
end
No errors, NPC just loads as my default NPC. It loads the HD correctly though