What should I do to fix this can space help?

I think I was being needy, he goes offline after a while and hasn’t seen my texts he doesn’t wanna hangout rn He says it’s because he wants to work on himself… but I don't know he knows I miss him, we aren’t a couple we do like each other but anyone else also been through this?
What should I do to fix this can space help?
Post Opinion