So i was trying to create a character editor gui. And i get this error
" Positon is not a valid member of MeshPart “Workspace.killeraman6.Head.Hair.Hair1"”
when i try to give the new hair the position of the head. Any way to fix this?
script:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
game.ReplicatedStorage.Events.HairEvent1.OnServerEvent:Connect(function(plr)
local storage = game.ReplicatedStorage.hair.Hair1
local char = plr.Character
if char:FindFirstChild("Humanoid") then
local folder = char.Head.Hair
folder:ClearAllChildren()
local head = char.Head
local New_hair = storage:Clone()
New_hair.Parent = folder
New_hair.Positon = head.Position
local Weld = Instance.new("Weld")
Weld.Parent = New_hair
Weld.Part0, Weld.Part1 = head, New_hair
Weld.C0 = CFrame.new(0,0,0)
Weld.C1 = head.HairAttachment.CFrame
end
end)```