# PathfindingService（ロブロックス クラス）

> 障害物をよけながら目的地まで進む道すじ（経路）を計算するサービスです。NPCを歩かせるときに使います。

- URL：https://roblox.minecraft-okinawa.com/reference/classes/PathfindingService/
- 公式：https://create.roblox.com/docs/reference/engine/classes/PathfindingService
- 受け継いでいるクラス：Instance

## メソッド

- `PathfindingService:CreatePath(agentParameters: Dictionary): Path`：経路を計算するためのPathを作ります。

英語の説明とメンバー一覧：Roblox Creator Documentation（CC BY 4.0）。日本語の解説はこのサイト独自のものです。

執筆：鈴木孝昌（現役プロジェクトマネージャー／プログラミング講師）／運営：沖縄マイクラ部 プログラミングスクール「クロスウェーブ」（https://minecraft-okinawa.com/）