NPC not walking off ledge

I use the raycasting to see if my NPC can see the player, but I need to comment it out for the NPC to fall down

It unfortunately didn’t work, nothing changed but I did say raycasting wouldn’t be optimal in this situation.

Then it would probably be with ur model

It’s weird, I’ve tampered with the model by changing it to the Roblox dummy, Moon Animator dummy, free models and nothing seems to change it. Such a pain…

Can someone please help me with this problem?