Cframe randomize my rotation

Hey,
I’ve been creating a variable with a cframe inside of it, the variable Cframe should have a rotation of a vector = 0,0,0.
Well, if i print it, the rotation has numbers, how is this possible? shouldn’t it be of 0,0,0?

--Cframe
			local Posizione = CFrame.new(
				Vector3.new(Tycoon.Mobili:GetAttribute("X")+(4*Item:GetAttribute("Valore")),Item:GetPrimaryPartCFrame().Position.Y,Tycoon.Mobili:GetAttribute("Z")),
				Vector3.new(0,0,0)
			)
			
			print(Posizione)

The print is the following:

2, 1.10000002, 50, 0.99920094, -0.000878382125, 0.0399583876, -0, 0.999758482, 0.0219771136, -0.0399680398, -0.0219595525, 0.998959661

How can I have a rotation of 0,0,0?

Thank you all!

Found a solution:

--Cframe
			local Posizione = CFrame.new(
				Vector3.new(
					Tycoon.Mobili:GetAttribute("X")+(4*Item:GetAttribute("Valore")),
					Item:GetPrimaryPartCFrame().Position.Y,
					Tycoon.Mobili:GetAttribute("Z")
				)) * CFrame.Angles(0, 0, 0)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.