Pathfinding not completing basic path

So I’m experimenting with NPC pathfinding but roblox’s pathfinding seems to just not work at all. I have set up a very basic obstacle for it but it just tries to clip through the ramp and it messes up the NPC when it tries to walk over it because it thinks it needs to go through it. The same thing happened when I tried it on a map, it would just try to walk through the ground if it elevated at all. I have it written exactly how it is written on the wiki so I don’t think it’s a problem with my code. What am I doing wrong?