How would I make a maze character

how can i make a Popout maze character like for example

A npc that pops out when you get to an area and when you leave. It goes back in it’s area
It’s like a HHN Maze

i want to make a game like this (1) 2016’s HHN Krampus Maze. - Roblox

I don’t fully understand, do you mean an NPC that appears when you enter a zone, and disappears when you leave the zone?

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.

i mean that walks out. then will walk back in

Ya, you can just add an animation to it.