If one object (teacher) could be seen by others (students) - it is multiplayer game.
If you want to students couldn't see each other - this is details of realization of multiplayer game.
Therefore, yes, there is a way to do that:
Packets about teacher send to all students. Packets about students send only to teacher, but not to another students.