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

Getting Lowest/Highest Coordinates?

Is It Possible To Get The Lowest Coordinates of a Model And The Highest Coordinates of the model as well?

Is it possible to get the lowest coordinates of a model and the highest coordinates of the model as well?

1 comment

0

Is this a no?

1 answer

try this:

local model = script.Parent.Model --change to your model's path, of course
local mpos = model:GetModelCFrame().p --obtains position of your model
local msize = model:GetExtentsSize() --obtains bounding box around your model
local mlowestpoint = mpos.Y-(msize.Y/2) --subtracts half of the size from the vertical position
local mhighestpoint = mpos.Y+(msize.Y/2) --adds half of the size to the vertical position

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