Roblox Wiki
Roblox Wiki
38,934
pages
Missing API Documentation
This API Class does not have any or complete API documentation. Please add API documentation if possible.

The PathfindingService class, added in version 158, inherits from Instance. It cannot be instantiated. It contains functions that enables Model light iconModel dark iconModels with Humanoid light iconHumanoid dark iconHumanoids to move to a certain location. It can be used with PathfindingLink light iconPathfindingLink dark iconPathfindingLinks and PathfindingModifier light iconPathfindingModifier dark iconPathfindingModifiers.

Properties

EmptyCutoff: float

  • Not replicatedThis member is not replicated across the network boundary.
  • DeprecatedThis member will be phased out and should be avoided while it is still available.
This class member is missing documentation. Create or add to its subpage at Class:PathfindingService/EmptyCutoff.
  • Category: Data.
  • Serialization: can load only.
  • Thread safety: read safe

Methods

ComputeRawPathAsync(start: Vector3, finish: Vector3, maxDistance: float): Path

  • YieldsThis function can yield the script it is used in.
  • DeprecatedThis member will be phased out and should be avoided while it is still available.
Parameters
NameType
startVector3
finishVector3
maxDistancefloat
  • Thread safety: unsafe

ComputeSmoothPathAsync(start: Vector3, finish: Vector3, maxDistance: float): Path

  • YieldsThis function can yield the script it is used in.
  • DeprecatedThis member will be phased out and should be avoided while it is still available.
Parameters
NameType
startVector3
finishVector3
maxDistancefloat
  • Thread safety: unsafe

CreatePath(agentParameters: Dictionary = nil): Path

Parameters
NameTypeDefault
agentParametersDictionarynil
  • Thread safety: unsafe

FindPathAsync(start: Vector3, finish: Vector3): Path

  • YieldsThis function can yield the script it is used in.
Parameters
NameType
startVector3
finishVector3
  • Thread safety: unsafe

External links[]