I have a ssj2 script, and in the script i wrote a line where it tells the script if it finds a Hair1
inside the player, it will remove/destroy it and make another hair appear. When i test it, the Hair1
removes but the Hair2
doesn't appear.
if player.Character:FindFirstChild("Hair1") then player.Character:FindFirstChild("Hair1"):Remove() else local Hair1 = rs.Hairs.SSJ2:Clone() Hair1.Parent = player.Character Hair1.Name = "Hair2" Hair1.Anchored = false Hair1.CFrame = CFrame.new(0, 4.5, 1) Hair1.Size = Vector3.new(2.5, 2.5, 2.7) local Weld = Instance.new("Weld", player.Character.Head) Weld.Part0 = player.Character.Head Weld.Part1 = Hair1 Weld.C0 = CFrame.new(-.1, 1, .5)
Remove line 8 and replace line 14 with
Weld.C1 = CFrame.new(0,0,0)
So,
if player.Character:FindFirstChild("Hair1") then player.Character:FindFirstChild("Hair1"):Remove() else local Hair1 = rs.Hairs.SSJ2:Clone() Hair1.Parent = player.Character Hair1.Name = "Hair2" Hair1.Anchored = false Hair1.Size = Vector3.new(2.5, 2.5, 2.7) local Weld = Instance.new("Weld", player.Character.Head) Weld.Part0 = player.Character.Head Weld.Part1 = Hair1 Weld.C1 = CFrame.new(0,0,0) --Make Adjustments here