A-Maze-Ing Emergency Exit

A-Maze-Ing Emergency Exit is the fifth mission of Hazy Maze Cave in Super Mario 64 and Super Mario 64 DS. The mission's objective is to navigate the course's toxic maze to reach a Power Star at the end of a different exit than the one taken during the last mission. The name of the mission is a pun on the words "maze" and "amazing."

Layout
From the start of the course, the player needs to take the path on the right and enter the next room. Once there, the player needs to slide down the pole and follow the green path to the center door on the right. The player should then enter the maze through the hole. Most of the maze is covered in a toxic cloud, but the player can use a nearby Metal Cap (or Wario's Power Flower in the DS version) to avoid taking damage for a short time.

Much like in the last mission, the player has to take the path ahead of them from the start of the maze followed by the left path. This time, the player has to climb up the first ledge rather than the second. In the next room, the elevator will take the player to an area above where they have to grab hold of the chain-link grate above them using / and maneuver to the Power Star on the far right platform. Letting go of the grate could result in falling into the large pit below.

In the DS version, Luigi can stand on top of the Black Brick in the room with the boulders and backflip to reach the platform on which the Star is. Mario can jump off a wall from the right of the brick to reach the platform.