Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

(repost) How do I create a ReservedServer on a game?

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

2 comments

1

(Please mark this as a duplicate with the question ID - 86497)

1

The question isn't being reposted multiple times quickly, and the question marked doesn't have a solution

1 answer

local TS = game:GetService("TeleportService")
local Players = game:GetService("Players")
 
local code = TS:ReserveServer(game.PlaceId) -- Returns a code
local players = Players:GetPlayers() -- Get a list of all players
 
TS:TeleportToPrivateServer(game.PlaceId,code,players) -- Actually teleport the players
-- You could add extra arguments to this function: spawnName, teleportData and customLoadingScreen

2 comments

0

lol I was about to say that totally.

0

seen that in rblx api thought it only joined them lol

This discussion is preserved as it was. New answers, comments, and votes are closed.