I have some models, and I need to get position or CFrmae of the model, with out use specific part inside the model as a reference (so I can't use PrimaryPart).

Or how to use all the part, to get the center of the model?

Any help will be appreciated.

6 comments

0

You can't. You have to use what's in the model to form any sort of constructive CFrame.

0

what about use all the parts to get the center?

0

That takes more code than it's worth when you could just use a small, invisible part and put it at the center and set that as the PrimaryPart.

0

That's exactly what I'm trying to do, that's why I need the model's CFrame, to position the part and use it as a reference

0

Why not just do it manually in studio...

0

Do you perhaps mean Position? You can find the average position of a model by adding all the Positions and doing some basic math, but finding an average CFrame is much more complicated.