Hey there, of course you have a right to expect and want girls to like you! Highschool and primary school, and hell, even college...can be vicious places full of immature people. Everyone is attractive in their own way...even if you don't meet the stereotypical expectation of 'beautiful', don't worry about this. How many people actually look like the people you see in magazines and on tv and in the movies? Not many.
I would try to forget about what those people said. Although I know it is hard... I was treated the same in my younger years, and did not get much attention from the opposite sex. But after I left school and uni and whatnot, the tables turned and I started to get a bit of attention. So of course the came will happen for you.
You will find someone who appreciates you, try not to be so hard on yourself