Hi roblox developers!
I want to achieve this result as in the photo
you need the red cube to split the main part to smaller parts
Hello, I think that you should know about this:
1.- Basepart Methods: Subtracting
2.- Basepart Methods: Union
3.- Basepart Methods: Intersection
Also, there´s a video that´s looks a little similar to your goal:
Source: Suphi Kaner | “Slice / Cut Parts - Roblox Scripting Tutorial”
Here is one resource for doing this with multiple parts instead of a single union:
If you scroll through this there are other options too:
https://devforum.roblox.com/search?expanded=true&q=voxel%20%23resources%3Acommunity-resources
Hello, my module can be used for this, the two most common methods which are documented in the post allow parts to be reverted back to their original state after a while. If you are looking for a permanent break to a part you can use this method.
local intersection, pieces = breaker.intersect(part: Part, canvas: Part ): (Part?, {Part})
The ‘part’ parameter is the part negating a region out of another part, the ‘canvas’ parameter is the part which is having its region negated. In your image you’d pass the red part as your part and the gray part as your canvas. This method returns a part that represents the intersection between the two passed parts and then returns a table of all the parts used to fill in the non-intersected region.
Hope this helps!
works perfectly fine!
thank you!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.