I’d like to set the orientation of a model to 0, 0, 0.
Would really appreciate some help, I’ve tried multiple methods but I can’t seem to understand the CFrame api well enough.
Here’s something I tried, thought I could “subtract” the angles but its just reversing it
local primarypart_cf = model:GetPrimaryPartCFrame()
local x, y, z = (primarypart_cf - primarypart_cf.p):ToEulerAnglesYXZ()
local reverse_angles = CFrame.Angles(-x, -y, -z)
model:SetPrimaryPartCFrame(primarypart_cf * reverse_angles)
Oriented part:
Expected result:
Actual result: