I created hitboxes in all my NPC’s so that the pathfinding system would avoid that space but when I placed a pathfinding modifier in the HumanoidRootPart, the NPC gets confused, thinking that it is inside the “Danger” cost.
When I remove the modifier, the pathfinding works as expected.
local pathParams = {
AgentRadius = 3,
AgentHeight = 5,
AgentCanJump = false,
AgentCanClimb = false,
WaypointSpacing = math.huge,
Costs = {
Danger = math.huge,
}
}