I have this piece of code that can move the model on top of a part but instead, it won’t go on top perfectly. I am using it to spawn random models to which they’re not the same size, so, it’s not dependent on a fixed number value to position itself on top of the part.
When I check my model’s PrimaryPart, it was the head and I noticed the tilted bounding box, then I changed it back to the HumanoidRootPart. The Boundingbox goes back into a perfectly oriented box, yet, still, it won’t go on top of the selected part.
OH, MY FREAKIN GOD. I think I know the reason why is it like that.
I’ve noticed the pivot location is not centered on the bounding box rather it goes to the model’s primary part by default.
As soon as I changed the location of the model’s pivot. the script also changed. I freakin hate this man… how do I change the location of the pivot directly in the center of the model now?
Getting around with this problem seems pretty difficult, so, I just create a new part inside a model in order to set it as the new PrimaryPart. and used the TranslateBy() so that the orientation doesn’t get affected.