Depends-on where they/you are in the-legal-foreclosure-process?
SOMETIMES periodically-paying some ($1.00?) amount to your-mortgage-holder can set-back-the-clock, and they have to start the-legal-foreclosure-process all-over-again; such racks-up more-legal-fees.
Negotiate Paying-rent/Staying with the new-foreclosure-property-owner.
Foreclosure-court/process issues a writ (which you have 10? days to appeal),
County-Sheriff executes writ WITHIN 15 to 30 days REMOVING YOU.
Foreclosure-owner MIGHT pay for your-keys/to-voluntarily-leave.