How do I tell him

Okay so me and this guy started talking 2 months ago. Recently he confessed to me and I really want to stay friends. It feels weird. When he told me I changed the subject (I regret it because I could of just told him I only wanted to be friends). I haven't told him yet and I don't want to make it seem like I'm leading him on. But I don't know how to say it. Im scared he will get mad and just cut things off. Helppp