Absent more information, it's difficult to tell. There are a bajillion possible reasons people aren't hanging out with you. Off the top of my head, some of the reasons I don't like to hang out with certain people include them being overly argumentative, saying racist things, leaning in too closely to me while talking, not taking things seriously, taking things too seriously, and body odor. It's also possible that you're over-analyzing your current situation.
You really should just try asking a close friend, family member, co-worker, classmate, or anyone you spend (or used to spend) a lot of time with (in a friendly capacity or otherwise). That said, the fact that you're asking HN rather than a close friend, family member, etc. suggests that doesn't work for you, for whatever reason.
So try this: go to a random meetup, chat with a stranger for 15-30 minutes, and then ask them if there's anything about you that seems off-putting. If you feel uncomfortable asking that kind of question or if you're concerned that you won't get an honest response, tell them you're gathering data for a study or something.
And if that doesn't work, you can always schedule an appointment with a professional therapist.