I assume that the person being spoken to is the teacher.
You as a teacher -- it comes together.
As a teacher, I hate you. As your friend, what you did was actually really funny. -- In this case, I'm the teacher.
- For Teachers