number , number , numberCFrame:ToOrientation ( )
Returns approximate angles that could be used to generate CFrame, if angles were applied in Z, X, Y order (Equivalent to toEulerAnglesYXZ)
This is what ToOrientation() does, it returns 3 numbers instead of a CFrame.
CF:ToOrientation needs a CFrame argument to collapse the CFrame into a vector3. That’s not what you want to do if you are using SetPrimaryPartCFrame(). SetPrimaryPartCFrame needs a CFrame. I’m guessing you want to rotate your model by 10 degrees?
You can do this with CFrame.Angles(0, math.pi/180 * 10, 0) instead of your CF:ToOrientation method. When rotating CFrames, you can multiply them and it will apply the rotation. So you would instead have
CF = CF * CFrame.Angles(0, math.pi/180 * 10, 0)
The math.pi/180 is a scaling factor since I believe CFrame.Angles requires radian angle measurements, not degrees.
This would rotate along the vertical axis of the model.
(Also a warning before I forget: if you do this rotation a lot using SetPrimaryPartCFrame, it is prone to roundoff errors which leads to separate parts in your model moving away from their true location. “A lot” meaning > 1000 times on the same model. If you’re doing it sparingly then it isn’t an issue)