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

How Do I Find A position Of A Model?

Asked by 10 years ago

How Can I Find A position Of A Model Or Map Or Part?

4 answers

Log in to vote
4
Answered by
Cizox 80
10 years ago
game.Workspace.Model:GetModelCFrame()

About as close as you can get. You can also find the Position of the PrimaryPart of a model.

Ad
Log in to vote
0
Answered by
duckwit 1404 Moderation Voter
10 years ago

That's actually, believe it or not, quite a terrible question. The answer is totally up to you! The centre could be the centre of mass, the average of the centres of all the constituent parts, you could say the centre is the furthest-most top-right-front corner, that the centre is the midpoint of the bounding-box of the whole model, that the centre is the centre of one particular part (like a Handle), etc...

It totally depends on what you want to do with it! :)

Log in to vote
0
Answered by 10 years ago

to do this you can highlight every part in the model and open properties and search Position and find it or you can open a script and type

game.Workspace.ModelName:GetModelCFrame()
Log in to vote
0
Answered by 10 years ago

local position=((model.PrimaryPart and model.PrimaryPart.Position)or model:getModelCFrame''.p);

Answer this question