Learn from your mistakes. Why were you rejected? One possible reason could be that you flirted obviously. That you revealed your feelings and intentions too easily and too early. That people became uncomfortable with you before they got the chance to know you.
Anyway don't feel rejected. What you think is what matters. If you think people are getting uncomfortable with you, simply step back. Pretend disinterest. Stop and wait. Demonstrate high status and high value. Be self-confident. Keep improving yourself. Improve the quality of your life. Meet other more interesting people.