How to make it so that players are teleported to a private server?

I have this code that teleports players to another place inside my experience, but I’m not sure how to make it so that each time this code runs it teleports the players to their own private server that no one else can join?

local tpOptions = Instance.new("TeleportOptions")
			tpOptions.ShouldReserveServer = true
			
			tps:TeleportPartyAsync(placeId, playersToTP, tpOptions)
2 Likes

are you trying to make it that every time a player joins your game they get teleported to a difference place?

1 Like

Basically I have a party create system where players can create parties of up to 5 people and then when they click play, are teleported to a place together. But I dont want them joining an existing server or a server that other players can join

3 Likes

You mean reserved server?

local teleportOptions = Instance.new("TeleportOptions")
teleportOptions.ShouldReserveServer = true -- It will reserve reserved(private) server

local PlaceID = 1234 -- Your place id

local listofplrs = {} -- List of players to teleport

game:GetService('TeleportService'):TeleportAsync(PlaceID,listofplrs,teleportOptions) -- teleport players

reserved server is basiclly like private server

3 Likes

just reserve a private server

These documentations should help you

2 Likes

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