Loss of friends

okay so my best friend got in a lot of trouble and is moving to a different school and i️t has killed me inside, how do i get over this but not forget him😭