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

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

Asked by 8 years ago

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

Log in to vote
0
Answered by 8 years ago

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.

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. DataStore 530 — 8y
0
How would you add the script that circles through the boat and delete welds? whats the script? WRITE THE SCRIPT DOWN BELOW User#9821 0 — 8y
Ad

Answer this question