PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

FindPathAsync

The FindPathAsync() 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|Path:GetWaypoints() function.

Parameters

Name Type Default Description

Path start coordinates.

Path finish coordinates.

Returns

Return Type Summary

A Path object