Skip to content
Roblox API Reference

Path

Stores the result of paths created by PathfindingService:CreatePath().
  • Not creatable
  • Not replicated
Memory category
Instances
Own members
7
Inherited members
75
Subclasses
0
Siblings
608

Properties24

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byPath1

Property categoryData

  • Path.Status: Enum.PathStatus
    The PathStatus of the generated Path.
    • Read only
    • Read capabilities: Basic
    • Save only

Methods46

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byPath4
  • Path:CheckOcclusionAsync(start: number): number
    Checks if a path is blocked starting at a specific waypoint.
    • Yields
    • Capabilities: Basic
    Parameters
    ParameterDescription
    start: number
    The 1-based index of the waypoint from which to begin checking for occlusion.
    Returns
    TypeDescription
    number
    The 1-based index of the first blocked waypoint starting from start, or -1 if the path is not blocked.
  • Path:ComputeAsync(start: Vector3, finish: Vector3)
    Computes a Path from a start position to an end position.
    • Yields
    • Capabilities: Basic
    Parameters
    ParameterDescription
    start: Vector3
    The world position where the computed path begins.
    finish: Vector3
    The world position where the computed path finishes.
  • Path:GetWaypoints(): { any }
    Returns an array of points in the path.
    • Capabilities: Basic
    Returns
    TypeDescription
    { any }
    An array of PathWaypoints ordered from path start to path end.
  • Path:GetPointCoordinates(): { any }
    Deprecated: This item has been superseded by GetWaypoints() which should be used in all new work instead.
    Returns a table of Path instances.
    • Deprecated
    • Capabilities: Basic
    Returns
    TypeDescription
    { any }
    An array of Vector3 positions for each waypoint in the path.

    Use GetWaypoints instead.

Events12

Inherited fromObject1
Inherited fromInstance9
Defined byPath2
  • Path.Blocked: RBXScriptSignal<(blockedWaypointIdx: number)>
    Fires when the computed path becomes blocked.
    • Capabilities: Basic
    Parameters
    Parameter
    blockedWaypointIdx: number
  • Path.Unblocked: RBXScriptSignal<(unblockedWaypointIdx: number)>
    Fires when a computed path that was blocked becomes unblocked.
    • Capabilities: Basic
    Parameters
    Parameter
    unblockedWaypointIdx: number