Hello everyone, I am making character customization and when I did it with hair It well… The video speaks for itself.
Sometimes the hair aligns and sometimes it doesn’t.
Script that handles the hair :
Events.Customize.OnServerEvent:Connect(function(plr,acc,num)
if acc and num then
if acc == "Hair" then
if CharacterCustomization[acc]:FindFirstChild(num) then
Character:FindFirstChild("Hair"):Destroy()
local clone = CharacterCustomization[acc]:FindFirstChild(num):Clone()
clone.Name = "Hair"
Character.Humanoid:AddAccessory(clone)
end
end
end
end)
There is an accessory called Hair inside of the character with a Handle part inside of it which has the size of 2,2,2. Help would be appreciated
(I am re uploading this topic to update all the information)
You only have to adjust the ones that are weirdly positioned. I can’t think of any better way though. This is what I did to the custom items in my game.
Unfortunately that’d be more complex than anyone is willing to write.
It’s actually easier to do this manually than to code something to do it for you because we don’t want to have to find a way to somewhat accurately assume where the mesh for the hair is.