a question for our islamicans who are currently teaching, how do you get your kids to take you seriously without being extremely strict on them

. this is a problem i have with my sunday school students. and i might go on to teach high school in the future inshaAllah, so this is kind of what i'm worried about at the moment. i know it's difficult for someone to be a friend and also a teacher to a group of students.. any advice?