FindPathAsync
This is a yielding function. When called, it will pause the Lua thread that called the function until a result is ready to be returned, without interrupting other scripts.
This function is used to find a Path
between two provided points. This path uses the navigation grid created by PathfindingService
and makes sure that the path can be followed by a regular-sized Roblox character.
This function returns a Path
object which contains the coordinates of the path. If no path is found between the two points, this function will still return a Path
object, but that object’s Path/Status
will be Enum.PathStatus.NoPath
.
To get the waypoints of a Path
object, you can use the Path/GetWaypoints
function.
Parameters
Name | Type | Default | Description |
---|---|---|---|
|
Path start coordinates. |
||
|
Path finish coordinates. |
Returns
Return Type | Summary |
---|---|
A |