Sorry it didn't work out. Good for you for finally asking him out though! He probably got bored of waiting and is now focusing on another girl, so he doesn't want you around. Hope you take this as a lesson - next time, don't wait so long to show your interest.