Skip to content
Roblox API Reference

PathfindingService

Used to find logical paths between two points.
  • Not creatable
  • Not replicated
  • Service
Memory category
Instances
Own members
5
Inherited members
75
Subclasses
0
Siblings
608

Properties24

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byPathfindingService1

Property categoryData

  • PathfindingService.EmptyCutoff: number = 0
    Deprecated: This property is deprecated, since the legacy pathfinding system using it has since been removed. Do not use it for new work.
    Sets the percent of a voxel has to be occupied to be considered empty. Defaults to 0.16.
    • Deprecated
    • Not replicated
    • Read capabilities: Basic
    • Load 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 byPathfindingService4
  • PathfindingService:CreatePath(agentParameters: { [string]: any }? = nil): Path
    Creates a Path object based on the given agent parameters.
    • Capabilities: Basic
    Parameters
    ParameterDescription
    agentParameters: { [string]: any }? = nil
    Lua table which lets you fine-tune the path based on various agent parameters.
    Returns
    TypeDescription
    Path
    A Path object.
  • PathfindingService:FindPathAsync(start: Vector3, finish: Vector3): Path
    Finds a Path between the two provided points.
    • Yields
    • Capabilities: Basic
    Parameters
    ParameterDescription
    start: Vector3
    Path start coordinates.
    finish: Vector3
    Path finish coordinates.
    Returns
    TypeDescription
    Path
    A Path object.
  • PathfindingService:ComputeRawPathAsync(start: Vector3,finish: Vector3,maxDistance: number,): Path
    Deprecated: This item has been superseded by PathfindingService:FindPathAsync() which should be used in all new work instead.
    Computes and returns a Path between two Vector3s. If the given MaxDistance is greater than 512, an error will be thrown. (MaxDistance is too large).
    • Deprecated
    • Yields
    • Capabilities: Basic
    Parameters
    Parameter
    start: Vector3
    finish: Vector3
    maxDistance: number
    Returns
    TypeDescription
    Path
    A Path object.

    Use FindPathAsync instead.

  • PathfindingService:ComputeSmoothPathAsync(start: Vector3,finish: Vector3,maxDistance: number,): Path
    Deprecated: This item has been superseded by PathfindingService:FindPathAsync() which should be used in all new work instead.
    Computes and returns a smooth Path between two Vector3s.
    • Deprecated
    • Yields
    • Capabilities: Basic
    Parameters
    Parameter
    start: Vector3
    finish: Vector3
    maxDistance: number
    Returns
    Type
    Path

    Use FindPathAsync instead.

Events10

Inherited fromObject1
Inherited fromInstance9