How to change the OriginOrientation of a model within a script?

Hi there, I am trying to figure out how to change the OriginOrientation of a model with a script but can’t figure out how if you know how please leave some information on how in the replies, Thanks! :slight_smile:

For future reference, please do a bit more research before posting/asking for help. Most of these issues are already resolved in another thread or in the API library.

You can use Model:PivotTo(), for example:

local Model_Pivot = Model:GetPivot()
Model:PivotTo(Mode_Pivot * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0))

This will also work:

Model:PivotTo(Model:GetPivot() * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0))

1 Like

Im sorry for the lack of research I just saw different asnwers online so I didn’t know which it is

Consider checking this thread for more information:

1 Like

You set model.WorldPivot = ...some CFrame in the script.

3 Likes