Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

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

Asked by 10 years ago

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
There is this service, I don't know if it works: http://wiki.roblox.com/index.php?title=JointsService Tesouro 407 — 10y

1 answer

Log in to vote
0
Answered by
Tkdriverx 514 Moderation Voter
10 years ago

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.

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. SquirreIOnToast 309 — 10y
Ad

Answer this question