Finding Top Log


i have a tool that gets a target part based on the mouse creates a sphere (the cutting part) and subtracts async with it

local success, newParts = pcall(function()
	return geo:SubtractAsync(
		{targetPart},           -- Parts to subtract from 
		{cuttingPart},          -- Parts to use as cutters 
		{
			CollisionFidelity = Enum.CollisionFidelity.Default,
			RenderFidelity = Enum.RenderFidelity.Automatic,
			SplitApart = true -- Crucial: Allows the target to break into multiple pieces
		}
	)
end)

the code in general works perfectly fine. However, when the parts finally split the issue is i cant differ from what part is the high part. and there fore they both get anchored and such because of so… when the parts are split… both of there positions are the same. is there anyway i can figure out what part is on the top?

If you put each part in a model and call :GetBoundingBox(), what does it return?

1 Like