Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to get the CFrame of a Model?

Asked by 7 years ago
Edited 7 years ago

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.

0
You can't. You have to use what's in the model to form any sort of constructive CFrame. OldPalHappy 1477 — 7y
0
what about use all the parts to get the center? LordSalchipapas 96 — 7y
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. antonio6643 426 — 7y
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 LordSalchipapas 96 — 7y
View all comments (2 more)
0
Why not just do it manually in studio... antonio6643 426 — 7y
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. OldPalHappy 1477 — 7y

Answer this question