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

How do you add health to a boat? [READ DESC.]

I tried adding a humanoid to the boat it self and also added a humanoid to the boat seat. Do I add it to both or only one. If only one ,which one?. Also i need to make sure the boat breaks when all health is gone and the player will die once the boat breaks. How do I do that?

1 answer

In this situation I would use a number value that represents health, no need for humanoid. To make sure all the parts break just add a script that circles through the boat and deletes any welds. For the player to die then just use the seats preset value for the humanoid weld and make it so once it reaches 0 so does the person.

2 comments

1

There would be no need to iterate through the boat's contents and deleting joints manually. He can quite easily just use BreakJoints on the boat.

0

How would you add the script that circles through the boat and delete welds? whats the script? WRITE THE SCRIPT DOWN BELOW

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