npc stuck roblox code example
Example: how to make pathfind stop making sharp turns roblox
Try replacing:
local Path = PathfindingService:CreatePath()
with:
local Path = PathfindingService:CreatePath({AgentRadius = 4})
It should give more room for error when pathfinding around walls.