I am working on a game where all the players start in a start place and then they can join a Queue to start the game and the game will teleport them all to the game server and once they are in that server no one else can join. I saw some stuff on how to do this and all I have found is how to teleport one player to another game. I feel like if I use this method but for all the players it will place some of them in different servers. So I was wondering if anyone knows how to do this.
1 Like
You probably want the TeleportAsync method of Teleport Service, but please remember to search for solutions first before posting.
https://developer.roblox.com/en-us/api-reference/class/TeleportService
1 Like
Using TeleportAsync allows you to teleport a table of players all at once, with lots of customization with teleportation choices
local TeleportService = game:GetService("TeleportService")
local teleportOptions = Instance.new('TeleportOptions')
teleportOptions.ShouldReserveServer = true
TeleportService:TeleportAsync(0 --[[ PLACE ID]], game.Players:GetPlayers(), teleportOptions)
This code reserves a server (doesn’t allow others to join) and teleports a table of players
2 Likes