Path finding example

heres the example:
so basically what happens is when the player walks they spawn a pathfinding block(inspired by @TinkerSmith example)
this deferince between this one and his is that the enemy is actually following the closest pathfinding block so it can find the closest route to you (ps its using actual uses physics no posistion tricks) also it deletes itself very quickly so a enemy cant just go all over the place-glitch sends his regards