So, I'm trying to place a hat onto a character, but since it's only being done as a local preview on the client, it doesn't automatically attach. So, I have the hat and its Attachment Forward,Pos, Right, and Up values, but I need to weld it. How can I use these values to weld it to the head of a player?
Here's what I have so far. It attaches it but it's facing the wrong direction and it's not correctly positioned, as I didn't do any CFraming.
facialHairs[customizedData.FacialHair].Parent = DisplayCharacter;
local weld = Instance.new("ManualWeld");
weld.Part0 = facialHairs[customizedData.FacialHair].Handle;
weld.Part1 = DisplayCharacter.Head;
weld.Parent = facialHairs[customizedData.FacialHair].Handle;

2 comments
https://devforum.roblox.com/t/humanoid-addaccessory-does-not-work-with-fe-from-a-localscript/33657/4
@kingdom5 This worked. Thank you.