Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by
chafava -113
4 years ago
Edited 4 years ago

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
(Please mark this as a duplicate with the question ID - 86497) Sonnenroboter 336 — 4y
1
The question isn't being reposted multiple times quickly, and the question marked doesn't have a solution hiimgoodpack 2009 — 4y

1 answer

Log in to vote
3
Answered by 4 years ago
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

0
lol I was about to say that totally. develop_d 53 — 4y
0
seen that in rblx api thought it only joined them lol chafava -113 — 4y
Ad

Answer this question