Dating advice help needed.

I've been seeing this guy for quite some time we have hung out quite a bit he has even kissed me multiple times and said he cares about what I think and such he's kind of a wander that moves around quite a bit but I'm having a hard time seeing where is head is at? He's told me about some future date ideas and what not and then out of nowhere he tells me he's leaving the state in 3 months and didn't tell me up front.  He says things like "don't get attached" "I'm no good for you" I don't want to see you get hurt" he's kind of talking out of two sides of his mouth his behavior doesn't match his words. he says he's leaving the state then he said something could anchor him down. It's a complete mind screw and I don't know what to do. Thank you so much in advance