I don't know if this applies to every country but the process is usually deducting debts to the estate or to the liquidated property that's inherited. If there is no asset to inherit then the creditor has no choice but to say goodbye to the money as he cannot collect from the relatives. Be cautious when some credit companies start pressuring you of a debt they just passed down to you.
That is what happens in any country that has rational laws in this regard, and is not a shithole. People can either accept the inheritance or not, which they usually only do if the assets exceed the debts.
The regulations that apply in my country are, if someone dies and still has debts at the bank, the heirs are obliged to pay off the remaining debts. This is very worrying, especially if the debt is used for gambling.
No matter how much you live in Indonesia you don't figure out the laws in force there, and believe the first conspiracy theory you hear on the street. With a simple google search you could have discovered the truth:
Don't Panic, This Is How to Pay Off A Loan If the Debtor DiesAccording to Indonesian law, debts included in the "inheritance" must be borne by the heirs. However, the remaining loan debt burden is only required to be repaid by the heirs who are willing to receive the inheritance in full.
In other words, as I said above, people only accept the inheritance (and are therefore obliged to pay the debt) if the assets to be inherited exceed the amount to be paid.