advise plz

Hurt my right foot. I think its a bone spur. Gotta get MRI and see ortho. I wonder if I'll gain all my weight back. Does anyone know any weight/cardio machines at the gym that won't hurt my foot?