Orientation CFrame problem!

Why doesn’t this work?

		local oldAngleX = v.CFrame.Orientation.X

Show us the entire script, or the section that deals with it.
One line with 2 variables in it doesn’t give us enough information.

you can’t do this: CFrame.Orientation, use CFrame.Angles()

Use:
local oldAngleX = v.CFrame:ToOrientation()

if you also need y and z just do:
local oldAngleX, oldAngleY, oldAngleZ = v.CFrame:ToOrientation()
NOTE: These angles are in radians, if you want them in degrees just do math.deg on them.

1 Like