Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What would be the best way to figure out brick joints being broken?

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?

1 comment

1

There is this service, I don't know if it works: http://wiki.roblox.com/index.php?title=JointsService

1 answer

✓ Accepted answer

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.

1 comment

0

Very good, thanks. Actually, I wanted that to be a feature too. It's good if a chunk breaks off and most of it isn't counted.

This discussion is preserved as it was. New answers, comments, and votes are closed.