There are Trusts the can be set up within a Will to protect children from spending their inheritance all at once. The Trust can take effect after you die or take effect while you are living.
The Trust will ensure that you have a trustee in place to give distributions to your beneficiaries (children or grandchildren). The trustee can distribute the funds to the beneficiaries for health, education, maintenance and support. These terms ensure that a child or grandchild does not get a lump sum of money outright. This type of Trust is called a Spendthrift.