This is the current code I have, but it seems to angle the cframe the wrong way.
Note: final_cframe is the cframe being edited here.
local x, y, z = final_cframe:ToOrientation()
x = math.rad(math.round(math.deg(x)))
y = math.rad(math.round(math.deg(y)))
z = math.rad(math.round(math.deg(z)))
final_cframe = CFrame.new(final_cframe.Position) * CFrame.Angles(x, y, z)
Here’s a visual of the issue.
Expected:
Actual Outcome: