My advice, don't try to be friends with your kids, at least when their young. Try to guide them and instill a value system and a desire to learn and love.
Maybe when they become adults they can be your friends. That is where I am now. One is 24 and the other is a very mature 18. We still have a parent / child relationship but we can goof around like friends. Even drink a glass of wine together (with the 24 year old). The 3 of us go to stupid movies. We all 3 love stupid movies and kids movies and adventure movies. My wife like drama movies which I tolerate.
I have other friends but not nearly as close. I have "friends" as work but we don't socialize together except for a private music party once a year. We respect each other. Maybe have a drink together once and awhile.