Assuming you find yourself in a similar situation as this, what will you do? How will you handle the situation to make your parents trust you again?
If this happens to anyone, just calm yourself and try to understand the fact that the money is lost. Try to figure out the capital/money lost. Bring clarity to yourself which will give you some peace of mind and confidence to pull yourself out of this.
Think about the ways you can earn the money back but this time in a legit way, like doing jobs etc.
Once you figure out everything, go to your parents, tell the truth, apologize, explain & clarify, assure and work.
Often these situations try to teach us something. Learn from it and move forward, not making these mistakes again. Also, tell others about your mistake if you see somebody making the mistake.
P.S.: In every situation you will have two options, either getting affected negatively or searching for something positive to move forward.
Having two options is inevitable.