So this is going to take place after the Avenger movie only when Thor and Loki got back to Asgard Loki was able to escape with the Tesseract and ended up in Magix.
Loki looks around and takes in his new surrounding. He realized that he stood out because of the clothes that he was wearing, he saw a group of guys all wearing the same suits and capes, so he used his scepter to change his clothes to match theirs, and followed them. By listening to their conversations he learned that this guy went to a school called Red Fountain. "What an odd name for a school," he thought to himself. He was able to join the Specialists, for that is what they called themselves, into their hovercraft and decided that when they got back to the school he would join as a student. He smiled to himself as he thought of that idea, "Thor and the rest of the Avengers will never thing to look for me at a school, let alone in this dimension"