You can buy a new car right before bankruptcy and surrender your old car in the bankruptcy. If you reaffirm (or stay obligated on the loan) on the new car in bankruptcy, it will help you rebuild your credit afterwards.
Please contact me at (314) 561-9690 for help. Answers provided to questions on AVVO are general in nature and do not represent specific legal advice. I am happy to meet with you in person to discuss your case in detail, and at that time I can give you specific advice based on the full facts of your case. *The choice of a lawyer is an important decision and should not be based solely upon advertisements.
Also, once the bankruptcy is filed it will hit your credit score within days and your interest rate will be sky high.
I met with a client on a Wednesday, advised her to buy a new car, which she did on Thursday, and we filed her bankruptcy on Friday. She surrendered her older car in the bankruptcy, and was allowed to take two car payments on her means test, which were necessary to get past that hurdle. And since the Friday she filed was the last day of the month in which she received three pays, none of those counted for the means test, which resulted in only 12 pays for the prior 6 months, where if we had waited a day, she would have had to list 14 pays. You really should have an attorney assist you in making bankruptcy decisions.