Pathfinding Stuttering

Hi everyone! This is my first post so if I’m doing something wrong here please point it out.

My goal is to make a NPC walk around randomly to simulate towns people. This was accomplished but over time I have run into a problem with pathfinding.

The NPCs stop and go at each waypoint. Another issue is that I made it where if the NPC can’t get to it’s destination it prints “Path failed”. This text has filled the console and I have no clue as to why it’s doing it.

I have tried looking up possibly reasons to this and Checking if I did the script incorrectly. I saved posting here for last when I can’t find anything else.

As of the time I’m posting this I’m currently on my phone and not at the computer. I will post a follow up picture of the script I’m using.