Is there an alternative to CFrame.Angles()?

Greetings, every time I try to use CFrame.Angles() it’s never correct, 90 degrees is somewhere in the 40s, 30, is in the 80s or 90s and I don’t want to do the math just to rotate a part 180 degrees and weld it to something. So is there an alternative to something or am I doing something wrong?

Current code I’ve been trying this with:

	local TorsoWeld = Instance.new("Weld")
	TorsoWeld.Parent = Torso -- Humanoid Torso
	TorsoWeld.Part0 = Torso -- Chest plate
	TorsoWeld.Part1 = Character.Torso
	TorsoWeld.C0 = TorsoWeld.C0 * CFrame.new(0,0,0)
	TorsoWeld.C0 = CFrame.Angles(0,90,0)

image < “90 Degree” angle.

It’s not just on the torso as well, it’s with weapons, other body parts, etc, etc.

CFrame.Angles uses radians, so you would want to do something like CFrame.Angles(0,math.rad(90),0)

1 Like

This works, however I now notice that it removes the ability to move the C0’s CFrame.

You need to add it to the CFrame.

TorsoWeld.C0 = TorsoWeld.C0 * CFrame.new(0,0,0) * CFrame.Angles(0,90,0)
1 Like