Let’s keep it simple and clear. I have a model which contains a few parts(the model is anchored), I want to rotate it to character’s humanoid root part orientation. Thanks for help!
You can use model:PivotTo(Your characters Orientation).
It’s really working now! But I have other issue. I built the model in a wrong order so it’s upside down. What should I do?
You can change the Primary parts orientation so that when it is at the orientation you want it will be upright if you do have a primary part but if you dont you set the primary part in the properties.
just offset the cframe youre passing in the PivotTo() argument, or as @labra_doodle12 said, offset the primary parts orientation.
It’s working perfectly. Thank you so much!
Your welcome, have a good day.
Thanks, you too have a good day.
One last question, how can I assign Look Vector to a model position?(Im using model:MoveTo())
You don’t. model:MoveTo()
takes a Vector3, which does not have rotation axes. Just use model:PivotTo()
, it’s much better.
If you really need to move the PrimaryPart and not the pivot, use model:SetPrimaryPartCFrame()
, which takes a CFrame which does have rotation axes.
You can use PivotTo() like @Fizzitix said. Something like
PivotTo(CFrame.new(Vector3.new(values), Vector3.new(Your lookVector values)))
And I think that would work.
Thank you for help. It’s working!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.