I want to move out but would leave my friend in a hard spot to get to school
Why would you move out?
My mom asked me to get out of the house.
I understand, but it's wrong to leave your friends in a hard spot. You should at least talk to your friend about it.
There is nothing I can do since I'll be going to a new city.
If there is nothing you can do then it's not your fault. You should at least explain to your friend what is happening.