Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How Do I Find A position Of A Model?

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

4 answers

game.Workspace.Model:GetModelCFrame()

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

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! :)

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()

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

This discussion is preserved as it was. New answers, comments, and votes are closed.