Teleport Data Doesn't Pass

  1. What do you want to achieve?
    I want my teleport to pass a data

  2. What is the issue?
    It doesn’t pass anything

  3. What solutions have you tried so far?
    I have tried asking discord and googling, and none of them seemed to help.

local TeleportData = {
    Type = "Train"
}
local ServerID = TeleportService:ReserveServer(game.PlaceId)
TeleportService:TeleportToPrivateServer(game.PlaceId, ServerID, {Player}, "SpawnLocation", TeleportData, nil)

TeleportService:TeleportToPrivateServer returns void. Learn more about TeleportService:TeleportToPrivateServer().

so I can’t do anything about it?

TeleportService:TeleportToPrivateServer() does not return anything, if you still need more information, read its documentation.

1 Like

All of the teleport service methods haven’t been deprecated but are not recommended to be used, instead use the new TeleportService | Roblox Creator Documentation method. It is now the new recommended and supports reserved servers, see the page for a guide on how to use reserved servers with it.

3 Likes