Does a guy like you if sometimes he hugs you when you see each other but sometimes he doesn't?

maybe but he may just trying to be a friend if he doesn't hug your friends well then i think he likes you