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!
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.
Closed as Not Constructive by Gameplayer365247v2, Nowaha, Psudar, namespace25, hiimgoodpack, and MachoPiggies
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?