Advice ?

Hey so I have been with my boyfriend for a couple years now and soon we will both be out of high school and he is thinking of going somewhere out of town for college/university which is great like I would be so happy for him but I know I wouldn’t be great at a long distance relationship and I don’t wanna break up so I just don’t know what I should do because I never wanna lose this guy but yet I don’t know what I should do so does anyone got any advice