CFrame problem with Angles

Hi guys,
do you know why it prints two numbers and the third one is not zero? Even if in declaration there is 0 placed as z argument?

	Position = CFrame.Angles(math.rad((Direction.X/Divide)+x), math.rad((Direction.Y/Divide)+y), 0)
	print(Position:ToEulerAnglesYXZ())

Have you tried to euler angles xyz?

What number are you expecting, and what numbers are being printed?

It could help you out if you put a print statement before the first line to let you know what variable values are assigned:
print(Direction.X, x, Direction.Y, y)
so you can see what the numbers are before the calculations.

I was expecting last one to be zero, but @dthecoolest solved my problem :slight_smile:

1 Like