I’m currently creating a door, which includes the door part and a hinge (attached on the side of the door part). This is all within a Model.
Now I want to find the centre of the model so I can place a billboard GUI, however both :GetModelSize() and :GetModelCFrame() are depreciated so I shouldn’t really use them. Also, I can’t find the centre by taking the CFrame of the primary part, as the hinge is the PrimaryPart (which is not in the centre).
What’s the best way of getting a model’s CFrame and Size, and finding the centre of a model?
Depreciation is the loss of generally monetary value over time
Deprecation is the disapproval of something, or discouraging it’s use.
As for your question, models have a GetExtentsSize method that returns a Vector3 size, like the size property of a BasePart. I don’t know of a non-deprecated function to find the CFrame though. You might have to write your own.
This really depends on what exactly you mean by the CFrame of a model. Could you be more specific? It sounds like you might actually be looking for a midpoint, which would be best represented by a Vector3.