So I am working on a Camping genre game, I have made the lobby part but now the problem I am facing is teleporting them (like 8 players). I can't get my head around this. Is there any way to do so? Thanks!
✓ ANSWER ACCEPTED
Teleporting a group of players to a certain game?
1 answer
✓ Accepted answer
You can use TeleportService:TeleportPartyAsync to teleport a group of players to a place within the same game.
Example of this in use:
local teleportService = game:GetService("TeleportService")
local players = game:GetService("Players")
local placeId -- your placeId.
-- TeleportService:TeleportPartyAsync(int64 placeId, Objects players, Variant teleportData, Instance customLoadingScreen)
-- Objects should be an array of players in our case (looking like {player1, player2, player3}.)
local playerList = players:GetChildren() -- these are all the players in the server into an array.
teleportService:TeleportPartyAsync(placeId, playerList)
As for getting your playerList to teleport, you can go about that many different ways. Try figuring out what works best for your system.
1 comment
2
Pro Tip: Use Players:GetPlayers() rather than Players:GetChildren()
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
always add a script since this is not a request site but a help site
@Gameplayer365247v2 This is not a request. These types of questions are allowed, the OP is asking how to go about solving a problem. Please stop incorrectly flagging posts.
@Psudar You can look the answer up by just typing the question into a search engine.