How to teleport to a new place every time

Im making a game where a group of players need to be teleported to a new place, I already have the teleporting script, this is an example of what I have

local placeId = 1
local playersList = {
   game:GetService('Players').Player1,
   game:GetService('Players').Player2
}

game:GetService('TeleportService'):TeleportPartyAsync(placeId, playersList)

is there a way to make it so its a new server every time and not a server with other people

I’m pretty sure you can achieve this using a Reserved Server

It would look something like this:

local TeleportService = game:GetService("TeleportService")

local playersList = {}

local reservedServerCode = TeleportService:ReserveServer(game.PlaceId)

TeleportService:TeleportToPrivateServer(game.PlaceId, reservedServerCode, playersList)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.