How does getting the min and max work for object I understand how to get it all that but.
I don't understand how doing script.Parent.Position - (script.Parent.Size/2) gets the min and doing script.Parent.Position + (script.Parent.Size/2) gets the max. If someone can please explain that would be nice I'm not that best at math.
For Region3, minimum position should be bottom left corner and the maximum position should be upper right corner.
Since .Position
is the middle position of the part, to get the lower left corner you need to subtract part's position with half of its size, for the upper right corner you need to add half of the part size to the position.
Here is image to demonstrate from different view