Walking and stoping bug

I have a problem with this script

the problem is that in line 158 i said to the script that the dummy needs to chase either the player or a part

(“path = pfs:FindPathAsync(hroot.Position, workspace.Handle.Position, Vector3.new(desgx, 0, desgz))”)

it makes the dummy go after the player or to a part named “Handle” and it works but for some reason while chasing the handle it walks and stops everytime can you help me fix that?