Sorry to hear about your situation; it can be really hard.
Bankruptcy is a legal process by which you admit you are unable to keep up with your debt payments and ask for help from a court. In doing so, a borrower greatly reduces their options to take on new debt, including car loans. Before shopping for a financed car, make sure it’s an absolute necessity.