Recreating Roblox Doors' Figure AI

So basically I want something that will follow a set path around an area, however will break off this set path and pursue a player if they aren't crouching. I already know how I'm gonna do the walking detection, but I'm trying to think of a way to make its set path and chasing abilities. Can anyone help me?
Continue to help post