Nevermind I dont need pathfinding script dont waste your time writing one!

Hello I’m having problems on making a horror/Killer NPC for a maze game. I did look for solutions but all of them failed and when I die the NPC don’t follow the player

Do anyone has a solution or anything for this my horror/Killer NPC to work
like with smart pathfinding to search for a player or chase a player when they are close?