Now, what I'm doing is making a demolition game. I want to make the person playing put them in strategic positions to make the whole building crumble. The twist is that you have funds, and you get stars for each level based on the profit you make. The trouble is finding out how much the building has been broken. I'm thinking that you should put all the joints in a model then count them, and count them at the end and score based on that. Would it work?
Try calling the :GetConnectedParts(true)
method on the baseplate. The only issue with this is that it won't get all the parts if a chunk broke off but is still together.
The :GetConnectedParts(bool recursive = false)
method returns a table of all connected parts.