# TeleportMethod（ロブロックス 列挙型（Enum））

> Identifies which TeleportService API method initiated a teleport.

- URL：https://roblox.minecraft-okinawa.com/reference/enums/TeleportMethod/
- 公式：https://create.roblox.com/docs/reference/engine/enums/TeleportMethod

## 選べる値

- Enum.TeleportMethod.TeleportToSpawnByName（0）：Teleport was initiated by Class.TeleportService:TeleportToSpawnByName(), which sends a player to a named SpawnLocation in a place.
- Enum.TeleportMethod.TeleportToPlaceInstance（1）：Teleport was initiated by Class.TeleportService:TeleportToPlaceInstance(), which sends a player to a specific running server instance identified by its instanceId.
- Enum.TeleportMethod.TeleportToPrivateServer（2）：Teleport was initiated by Class.TeleportService:TeleportToPrivateServer(), a deprecated method that sends players to a reserved server using a legacy access code.
- Enum.TeleportMethod.TeleportPartyAsync（3）：Teleport was initiated by Class.TeleportService:TeleportPartyAsync(), which sends a group of players to a place together.
- Enum.TeleportMethod.TeleportToVIPServer（4）：Teleport was initiated to a VIP (creator-owned private) server; the engine upgrades the method tag to this value when VIP server credentials are present at teleport time.
- Enum.TeleportMethod.TeleportToInstanceBack（5）：Teleport was initiated by back-navigation, returning a player to a specific prior place instance.
- Enum.TeleportMethod.TeleportUnknown（6）：Fallback value used when the teleport method cannot be determined.

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

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