TweenService:Create property named 'Orientation' cannot be tweened due to type mismatch (property is a 'Vector3', but given type is 'CoordinateFrame')

Im currently trying to make a model rotate using tween service and i got this mismatch error.
Could there be a way i could fix this? i never encountered this error before.

local RotationInfo =,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,0)
local TweenCreate = TweenService:Create(SpawnedNpc.PrimaryPart,RotationInfo,{Orientation = CFrame.Angles(math.rad(45),0,0)}):Play()

Orientation only accepts Vector3 Values and not CFrame values, CFrame Accounts for both Position and Orientation (Rotation), and uses Radians as a Unit of Measurement, While the Orientation Property only Accounts for Rotations, uses Vector3 for 3D spaces, and uses Degrees to function.

Either apply a Vector3 to Orientation, or use CFrame Instead of Orientation.

{CFrame = NewCFrame}
{Orientation = Vector3.xAxis*45} -- Equivalent to,0,0)
1 Like

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