PathfindingModifiers doesn't work the way they should

I’m Making a game with lots of humanoid characters and I want them to move from place to place with pathfinding to find the shortest path to the goal, and I want them to use the proper path such as side walks and crosswalks, so I gave every path (except roads that are color black) with path finding modifiers and changed the Label property to “PathFinding1” so I can make it the lowest cost so the pathfindingservice will use that path, but the pathfinding doesn’t care about it at all

local Agents = {
	
	["Human"] = {
		AgentRadius = 5,
		AgentHeight = 5,
		AgentCanClimb = true,
		AgentCanJump = true,
		AgentCollisionGroupName = "NPCHuman",
		WaypointSpacing = 4 * (6 / 16),
		Cost = {
			["PathFinding1"] = 0.01,
		}
	},
}


I also tried adding invisible parts with cancollide false and made them bigger than the actual path and add modifier on it with passthrough enabled as well and still doesnt work

I’m pretty sure its “Costs” not “Cost”, and maybe put the cost higher too

1 Like

I Can’t believe I’ve been trying to fix this for hours without noticing the spelling error, Thank you for pointing it out, it fixed the pathfinding, also the amount of costs is just right because its the path that have the modifiers, not that road

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.