He said he liked me but then got a girlfriend?

Okay, so a couple of weeks ago when I first moved to his school he told me that I was really pretty. He was going around telling people that he liked me and I started to like him too. He called me his bae and best friend and he told my friend that he was going to ask me out soon. Come to find out, he asked a girl out yesterday and now they're together. He basically made me like him and then changed his mind. I still like him. What do I do?
He said he liked me but then got a girlfriend?
Post Opinion