Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Need Urgent help! Can u guys help me fix this hair reverse?

Asked by 6 years ago

When i weld my hair its shows my hair backwards

game.Players.PlayerAdded:connect(function(plr)
    local char = workspace:WaitForChild(plr.Name)
    local hair4 = game.ReplicatedStorage.Vegito:Clone()
    hair4.Parent = char
    hair4.Name = "Hair" 
    hair4.CanCollide = false
    hair4.Locked = true
    hair4.CFrame = char.Torso.CFrame
    local w = Instance.new("Weld")
    w.Parent = char.Head
    w.Part0 = char.Head
    w.Part1 = hair4
    w.C0 = CFrame.new(0, 0.9, 0.11)* CFrame.Angles(0, math.pi, 0)
end)

Thanks Also if u could help me remove all accessories that would be great on the players head that would be great

0
Edit the X and Z values using math.pi in "CFrame.Angles(0, math.pi, 0)" until it's rotated correct creeperhunter76 554 — 6y
0
edit the `CFrame.Angles` offset on line 13 until it looks seamless. Goulstem 8144 — 6y

1 answer

Log in to vote
1
Answered by 6 years ago
Edited 6 years ago

CFrame.Angles(0,0,0) Try using math.rad or if you want to use math.pi, dividing it will give you the angles. Math.pi/2 = 90 degrees math.pi/4 = 45 degrees etc.

I'm guessing you'd have to do CFrame.Angles(0,math.rad(180),0).

For accessory removing, do this.

Put this in the game.Players.PlayerAdded:connect(function(plr) function

for i,v in pairs (plr.Character:GetChildren()) do
    if v:IsA('Accessory') then
        v:remove()
    end
end
Ad

Answer this question