Need help in a Random Map Layout Payload System

Hi, I am a new scripter attempting to make this payload system for my game, I’ve tried pathfinding but there would always be some sort of problem with the random layouts and some issues trying to get it to go up slopes with the changing angles. I’ve maybe thought of killing the pathfinding and remake a new one in the same position but on a new pathfinding goal except I have no clue how to do that sort of thing, thank you if you can help!