How would I make a maze character

You could use this: ZonePlus v3.2.0 | Construct dynamic zones and effectively determine players and parts within their boundaries

Just copy the sliding doors example but with an npc in place of the doors.