In fact, the most important thing is to enrich yourself when you have no friends.
Only when you are an interesting person can you meet interesting friends. Find more topics to talk about when talking to others.
When you feel lonely, the best solution is often to enrich your life. For example, you can consider participating in more activities, try to record your daily thoughts, and raise your head to pay attention to what is happening around you. Another good way is to think about which of the school clubs or activities you are currently participating in makes you feel the most fulfilling and relaxed; after discovering such a club/activity, you can take time to regularly Participate in activities like this and it might be easier to find people who share your interests. Only in an environment that makes you more relaxed is it easier to strike up conversations with the people around you, and this is how I finally made my first good friend in college.
It should be noted here that you must make friends in an environment where you feel comfortable, but this does not mean that you should not step out of your comfort zone. In fact, it is necessary to strive to step out of your comfort zone, but it should not be contrary to your personality and values.
The behavior that really makes you step out of your comfort zone is to be able to remain yourself in the face of difficulties in making friends, to still insist on enriching your life in loneliness, and to do what you want to do without fear of obstacles. . If you are very eager to practice a new skill, such as speaking a foreign language well, or you really want to realize a wish, as big as getting an internship/volunteer project, as small as taking a favorite class, then you are working towards it. In the process of working towards your goals, you will inevitably need to step out of your comfort zone. You may find that there are very few people with the same interests as you, or you may have to plunge into an unfamiliar environment. And although this process is difficult, it will bring you surprises one day: not only will you grow in unexpected ways, but you will also meet many interesting people, and maybe one of them will have the same goals as you.
Even if you have to endure loneliness for a long time, you can still live well by enriching yourself.