reposted because no one answered first one rip me
Basically I need to know how one game (the game the server creation script makes reserved server for another game), say if I should add the place to game universe or not, thanks!
Also, you can DM me if you have a problem so I can help you understand what i mean later if needed: chafava#4820
1 | local TS = game:GetService( "TeleportService" ) |
2 | local Players = game:GetService( "Players" ) |
3 |
4 | local code = TS:ReserveServer(game.PlaceId) -- Returns a code |
5 | local players = Players:GetPlayers() -- Get a list of all players |
6 |
7 | TS:TeleportToPrivateServer(game.PlaceId,code,players) -- Actually teleport the players |
8 | -- You could add extra arguments to this function: spawnName, teleportData and customLoadingScreen |