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.
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
6 comments
You can't. You have to use what's in the model to form any sort of constructive CFrame.
what about use all the parts to get the center?
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.
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
Why not just do it manually in studio...
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.