Unable to cast Vector3 to float

I have a function with these 3 lines:

local eulerOffsetDeg = (one.Orientation-two.Orientation):Abs()
local eulerOffsetRad = eulerOffsetDeg*(math.pi/180)
local rotOffset = CFrame.fromOrientation(eulerOffsetRad)

i have put print statements before the first and second variables, but when the third variable is declared in any way it leads to the error in the title.
i dont know what to do at all please help

1 Like

because you are trying to apply a vector3 directly to the first parameter of fromOrientation, you need to fill in numbers for all 3 parameters

1 Like

well thats kind of inconvenient but sure

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