Now we understand the concept of creating the destructible objects, but the objects that we just created are on the cube from the Unity engine. We can make it more interesting with something like the following:
Creating your own object in any 3D software, instead of the cube, to make it much more realistic and attach the ParentRocks.js script to it and see how it works
Adding some script that will make the rock damage the player and AIs when they get hit while the rock is falling down
Adding the smoke particle to the rocks when they are falling down
Making the ragdoll match the last AI animation post by creating the ragdoll with the AI game object and using the isKinematic method to enable or disable ragdoll physics instead of replacing the new object
Creating a random rock that will fall every time the player walks by the lake