Npc hat positioning bug

  1. I want to load character hats into npc correctly

  2. When I load hats into npc they are incorrectly Positioned
    Hat_Position_Bug.mp4 - Google Drive

  3. I already have looked through multiple posts, none of which has helped. I also have tried setting the parent of all hats into workspace then back into the npc.

local hum = script.Parent
local desc = game:GetService("Players"):GetHumanoidDescriptionFromUserId(60248339)
wait(3)
hum:ApplyDescription(desc)
wait(0.2)
hum:GetAccessories()
for _, accessory in ipairs(hum:GetAccessories()) do 
	accessory.Parent = game.Workspace
	wait(0.1)
	accessory.Parent = hum.Parent
end

I await a response, Thanks!

I tested your script and it works fine.
Maybe just studio being weird