When i weld my hair its shows my hair backwards
01 | game.Players.PlayerAdded:connect( function (plr) |
02 | local char = workspace:WaitForChild(plr.Name) |
03 | local hair 4 = game.ReplicatedStorage.Vegito:Clone() |
04 | hair 4. Parent = char |
05 | hair 4. Name = "Hair" |
06 | hair 4. CanCollide = false |
07 | hair 4. Locked = true |
08 | hair 4. CFrame = char.Torso.CFrame |
09 | local w = Instance.new( "Weld" ) |
10 | w.Parent = char.Head |
11 | w.Part 0 = char.Head |
12 | w.Part 1 = hair 4 |
13 | w.C 0 = CFrame.new( 0 , 0.9 , 0.11 )* CFrame.Angles( 0 , math.pi, 0 ) |
14 | end ) |
Thanks Also if u could help me remove all accessories that would be great on the players head that would be great
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
1 | for i,v in pairs (plr.Character:GetChildren()) do |
2 | if v:IsA( 'Accessory' ) then |
3 | v:remove() |
4 | end |
5 | end |