I have a question about this

So i was reading this
https://create.roblox.com/docs/reference/engine/classes/TeleportService#TeleportToPrivateServer
Any who my question is that if i was to send one person to this server,
And then i sent another one would they both be put into the same server or a different one.
And if they will be in different servers how do I send em both to the same one?

local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")

local code = TeleportService:ReserveServer(game.PlaceId)

local players = Players:GetPlayers()

TeleportService:TeleportToPrivateServer(game.PlaceId, code, players)

Yes it will, the codes are unique to that one server.

You can use MessagingService to send codes between servers.

1 Like

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