How can I change origin orientation

How can I change the origin orientation of a model in a script?

2 Likes

Use :PivotTo() and CFrame:

local Model = workspace.Model

Model:PivotTo(Model:GetPivot() * CFrame.fromEulerAnglesXYZ(X, Y, Z)) -- In radians
6 Likes