The teacher intends to affect your behavior. Speech by which the speaker attempts to get someone else to do something is a perlocutionary act.