Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

2 comments

0

Edit the X and Z values using math.pi in "CFrame.Angles(0, math.pi, 0)" until it's rotated correct

0

edit the CFrame.Angles offset on line 13 until it looks seamless.

1 answer

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

2 comments

0

:remove is deprecated.

This discussion is preserved as it was. New answers, comments, and votes are closed.