Separating two parts by negation

I have a tool where it spawns a negating sphere on click to that position of said click. MY GOAL is to have the a rectangle of wood be separated by by all those negations:



How can I fix this?

1 Like

I looked st creating two separate parts and unioning each side but when the player doesn’t finish using the negation sphere when it hasn’t even cut through there are two parts already made so any help help would be great

1 Like

When the original Union has been separated completely duplicate it.
On the first half put a Part just larger than the bottom half and negate it from the bottom half.
On the second do the same thing, just on the top half.
Now you have 2 separate Unions made from the original complete Union.

3 Likes

Take a look at GeometryService:SubtractAsync(), which is slightly different than BasePart:SubtractAsync(). Specifically, pay attention to the “split apart” option in GeotmetryService.

3 Likes