Problem with ai pathfinding

Hello everyone, i work on a pathfinding but when the npc chase me, the npc move in random position, go into the wall.

You need to show us the script, we can’t solve the problem if we dont know what you scripted

1 Like

Assuming you’re creating a custom pathfinding configuration like this:

local path = PathfindingService:CreatePath({
	AgentRadius = 3,
	AgentHeight = 6,
	AgentCanJump = false,
	Costs = {
		Water = 20
	}
})

You need to increase the AgentRadius variable

1 Like

Well, did you make sure the target was to torso, and not to anything else. Because it might not be getting the position of the Torso, so it doesn’t know to follow the torso, or whatever your trying to make it follow. So, that might be why it’s not working. If this make’s any sense to you at all that is. I hope you found this helpful, if you didn’t at least I tried to help out.

I tried all, but it don’t work… I tried to change the target position, change the agent and radius