Hat welding problem

Hi!
I’ve made a custom character.

And got this bug:

So back accessories welds to the head.
The hat welding is very simple: Just copying the hat from the CharacterAppearance model, and paste it in the player model.

@Sunx_x
Hey, may you send the welding section of the script you’re using to weld the hat? It’ll help us figure out your problem

The script is simple, just getting player’s charappearance and changes hat parent to player model.

Also i fixed the problem with this:

hat.Handle.CFrame = char.Head.CFrame * CFrame.new(0, char.Head.Size.Y / 2, 0) * hat.AttachmentPoint:Inverse()