Hello! There appears to be an issue while using :GetHumanoidDescriptionFromUserId
on NPC’s. Quite often, the accessories that are loaded are incorrectly positioned which makes the player look odd. This is more common with UGC items, but does also happen with Roblox items, as demonstrated below.
From this screenshot, you can see that the bunny tail item is on the face, rather than the lower back. Another thing is the glasses, there seems to be a “loose hair” at the top of the head, but it’s actually a part of the glasses.
I’m not sure where to go from here, any suggestions?
Edit: I tried using an event to find when the NPC was properly loaded, and then re-equip the accessories, however I got error 403 I think, it was the forbidden error
Here's my script:
function loadNPC()
for i,v in pairs(script.Parent:GetChildren()) do
print("loop")
if v.ClassName == "Accessory" then
print("accessory")
local accessoryHandle = v.Handle
local accessoryID = accessoryHandle:FindFirstChildOfClass("SpecialMesh").MeshId
local accessoryID = tonumber(accessoryID:sub(14))
local IS = game:GetService("InsertService")
print(v.Name)
local accessory = IS:LoadAsset(accessoryID)
script.Parent.Humanoid:AddAccessory(accessory)
end
end
end
game.ReplicatedStorage.LoadNPC.Event:Connect(loadNPC)