How to get all possible paths to a player/part using pathfinding

You can use Pathfinding Modifiers. this post goes really into depth about this:

(just go down to the section named Agent Parameters and Pathfinding)