Hi guys.
I have made an islands. They all have parts Named “IslandHeart” as their PrimaryPart.
If part of island gets destroyed, IslandHeart needs to be moved to the new center of island.
(Island heart is Vector3.zero() sized part, but on images you will see it a bit bigger)
This has 2 problems tho:
- Moving IslandHeart causes a lot of lag, when moved with
.Position = smth,Weld.Enabled = false and after move done true,WeldedParts.Anchored = true/falseIs there any more performant way of doing so? And yes, it’s issue with my islands which have around 2k parts, and worst case scenarios can have around 15k parts. (Although, max amount of welds to IslandHeart is exactly 5k)
- Not in all cases IslandHeart needs to be moved - if object destroyed in center of model - it won’t cause change in island bounding box. This can be checked easilly. But IslandHeart influences to BoundingBox too. What if there was 2 corner parts on opposite sides of model? It will make it so island bounding box’s size can change only by max 1/2, due to it taking central spot.

