There are a few things that could be going on when a guy says he doesn't want a long-distance relationship. Maybe he's not ready for a serious commitment, or maybe he's just not into the idea of being in a long-distance relationship. Either way, it's important to communicate with him and figure out what his intentions are.
If you're interested in pursuing a long-distance relationship with this guy, sit down and have a conversation with him about it. Talk about your feelings and see where he stands on the matter. If he's not interested in being in a long-distance relationship, then you'll need to decide if you're okay with that or if you want to pursue something else.
It's also possible that the guy is simply afraid of getting hurt. Long-distance relationships can be difficult, and there's always the chance that one person will end up getting hurt more than the other. If this is something that worries him, try to reassure him that you're willing to work through the tough times together. Let him know that you're committed to making things work no matter what happens.
At the end of the day, it's important to remember that everyone is different and there isn't necessarily one right answer when it comes to relationships. What works for some people might not work for others. Talk to the guy and figure out what kind of relationship he wants before making any decisions about your own future.