In this ever-changing fast world, children get effected by both classmates and their parents. It is a debatable topic, whether classmates or parents are more powerful in childrens' lives. However, I feel (I believe , is more powerful), they are more influenced by their classmates.
These activities take more time to interact more with their friends.
I suggest to avoid repetition on the same sentence
Parents restrict them from some activities for their bright future or to avoid facing dangers in life while, classmates support them in all
Look at your word
restrict and
or it means that parents are restricting them from some activities or from avoiding facing dangers? I do not believe that you mean that avoiding dangers is a restriction, consider revising.
children are choosing their own friends but cannot select their parents, and are forced to accept them.
In conclusion (I would not recommend the use of this word, is up to you), children are spending quantity time with their friends and feel that, (remove the comma)classmates are more attached to them. As a result, I believe, children get affected from their friends more than their parents get.
Very best of luck