I've tried to make a script that teleport groups of people to a different game, Doesn't work.
01 | for i = 1 , 5 do -- Countdown |
02 | wait( 0.5 ) |
03 | print (i) |
04 | end |
05 |
06 | local bruh = game:GetService( "TeleportService" ):ReserveServer( 3271046192 ) |
07 |
08 | for i, Players in pairs (game.Players:GetPlayers()) do |
09 | local Success, Fail = pcall ( function () |
10 | game:GetService( "TeleportService" ):TeleportToPrivateServer( 3271046192 , bruh, { Players } ) |
11 | end ) |
12 |
13 | if Success then |
14 | print ( "Worked" ) |
15 | end |
16 | if Fail then |
17 | print ( "Dang" ) |
18 | end |
19 | end |
Try making the Countdown higher:
01 | for i = 1 , 300 do -- Countdown |
02 | wait( 0.5 ) |
03 | print (i) |
04 | end |
05 |
06 | local bruh = game:GetService( "TeleportService" ):ReserveServer( 3271046192 ) |
07 |
08 | for i, Players in pairs (game.Players:GetPlayers()) do |
09 | local Success, Fail = pcall ( function () |
10 | game:GetService( "TeleportService" ):TeleportToPrivateServer( 3271046192 , bruh, { Players } ) |
11 | end ) |
12 |
13 | if Success then |
14 | print ( "Worked" ) |
15 | end |
16 | if Fail then |
17 | print ( "Dang" ) |
18 | end |
19 | end |