A while ago I made a morph with a bunch of parts in a model as hair, but recently I decided to replace the parts with a mesh I made in blender, cause the parts looked ugly. I now had the problem of the hair and beard being separate, and me having to use :GetChildren instead of :WaitForChild. For some reason both the hair and beard appear as they did on the model, only several studs in front of my face. Any idea as to what’s causing this? Here is the script:
function morphPlayerHead(part)
local player = part.Parent:FindFirstChild("Humanoid")
if player and player.Parent.Head.Transparency == 0 then
local clone = head:Clone()
local cloneWeld = Instance.new("WeldConstraint")
local cloneChildren = clone:GetChildren()
player.Parent.Head.Transparency = 1
player.Parent["Pal Hair"]:Destroy()
player.Parent.Head.face:Destroy()
clone.Parent = player.Parent.Head
clone.Anchored = false
clone.Position = player.Parent.Head.Position
clone.Orientation = player.Parent.Head.Orientation
cloneChildren.Position = player.Parent.Head.Position
cloneChildren.Anchored = false
cloneChildren.CanCollide = false
cloneChildren.Orientation = player.Parent.Head.Orientation
cloneWeld.Parent = clone
cloneWeld.Part0 = clone
cloneWeld.Part1 = player.Parent.Head
end
end