Pathfinding Problem on Terrain

I am having issues with pathfinding. The pathfinding function is connected to a loop and it keeps changing paths, resulting in an error. It is working perfectly on flat but in any rough it does not

https://gyazo.com/68bd83695c2221c9cb13cb8fad832560

We need to see the script to help you!

1 Like

actually it’s a part of my module. This code is connected with RunService.HeatBeat. And by the way I used SimplePath module

-- self.target is an instance
			if self.target then
				self.path:Run(self.target)
			elseif self.path._status == 'Active' then
				self.path:Stop()
			end