Model A and Model B are duplicates of one another. However, one has a PrimaryPart set, while the other DOES NOT. How can I get Model B to have the exact same position and orientation as Model A, if Model A has a PrimaryPart which it is pivoted around, and Model B does not. The aim is for each of them to use their respective parts as the PrimaryPart, ensuring they align with the same position and orientation when positioned. I can’t simply set the PrimaryPart myself because it can change for both of them and/or be different.
Could you tell us more about the problem?
Such as what exactly are the limitations of the duplicate models your trying to align, why can’t they have identical primary parts if they are clones (if it is a one time alignment then you could set their primary part to a special one for that purpose before setting it back, for example.), etc.
Since primary parts and setting pivots for models exist for the very purpose of solving these kinds of problems, there needs to be more provided as to why and how these limitations have come about.
I think the :PivotTo() method can accomplish this.
^ I don’t think this requires a PrimaryPart in a Model, instead it uses the WorldPivot property in a Model.
I forgot to mention that, Model A was positioned with the PivotTo method after its primary part was set, however Im unsure of how to find the same part relative to Model B to position it the same way. Additionally, removing the PrimaryPart of Model A causes its position and orientation to become completely messed up.
Additionally, their primary part may change from time to time and while they are duplicates of one another, they’d have a different primary part (or not one at all) making it difficult to position and orientate them correctly.
The easiest solution I can offer is to incorporate an invis/uncollidable part into your models that do this, and ensure that it is always the primary part during these operations. That way you can simply set their pivots to one another.
I can’t do it that way since their primary part can make positioning the model for certain cases easy and simple. I’ve decided that I’m just going to give each model a “Center” part for special operations.