What to do in a situation where.....

A guy i like is not ready to be in a relationship rn he got out of a 4 yr relationship last year but he’s into the whole no strings attached/ friends with benefits. He lead me on and he just mentioned how he wants be friends. Have you been in a situation like this before? I’m kind of upset because I thought he liked me.