> For the complete documentation index, see [llms.txt](https://vopwn55.gitbook.io/powerlang-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vopwn55.gitbook.io/powerlang-docs/libraries/services/pathfinding.md).

# Pathfinding

The **Pathfinding** service allows you to trace a path (start to end) for a humanoid character to walk.

| **Function**                                                           | **Description**                                                                                                                                                                                                                                                                                                                |
| ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `ComputePath(StartPosition: Vector3, EndPosition: Vector3): {Vector3}` | Computes a path from a starting position to an ending position using Roblox's pathfinding service. Requires 2 arguments: `StartPosition` (of type `Vector3`) representing the starting point and `EndPosition` (of type `Vector3`) representing the destination. Returns a table of `Vector3`s representing the computed path. |
