so, im creating a game that is "not quite" like camping, but the joining process is very similar, but im not sure how to get a group of players to join the server of the ACTUAL game, and after that make sure to not teleport anymore players to that groups server...
i know there is a way to do it with the whole "reserve server" thingy, but obviously by the name i just called it by, i don't know how to work it..
if someone could create a game teleport like so, that would be fantastic.
You want to teleport a group of players to a reserved server private server.
local TS = game:GetService("TeleportService") local Players = game:GetService("Players") local code = TS:ReserveServer(game.PlaceId) -- Reserves the server local players = Players:GetPlayers() -- Get a list of all players TS:TeleportToPrivateServer(game.PlaceId, code, players) -- Actually teleport the players -- You could add extra arguments to this function: spawnName, teleportData and customLoadingScreen
Instead of all the players you will only want some players. For that just do this:
local playersTable = {}
and to add a player just do: table.insert(playersTable, plr)
If this helped you out, please mark it as the answer. To clear the table; aka make it empty you will just do local playersTable = {}
again.
I believe it uses the universes. It allows you to have multiple places under 1 game. Take a look at Roblox's Wiki article https://developer.roblox.com/en-us/articles/Teleporting-Between-Places
Roblox also has another tutorial on reserving servers here
If you couldn't understand the Wiki links I gave you, feel free to respond!