|
| 28 May 2017 04:11 AM |
| ############################################################################## i'm referencing this, and i'm having trouble understanding what classifies as the code for a specific private server local code = TS:ReserveServer(game.PlaceId) -- Returns a code this is the part that confuses me would it 'randomize' each time it was called? if not, how would i make it do that? |
|
|
| Report Abuse |
|
|
|
| 28 May 2017 04:11 AM |
holy filtering
okay so it messing up my formatting, but this is the wiki article i'm referencing
API:Class/TeleportService/ReserveServer |
|
|
| Report Abuse |
|
|
|
| 28 May 2017 04:12 AM |
(fixed formatting)
i'm referencing this, and i'm having trouble understanding what classifies as the code for a specific private server
local code = TS:ReserveServer(game.PlaceId) -- Returns a code
this is the part that confuses me
would it 'randomize' each time it was called? if not, how would i make it do that? |
|
|
| Report Abuse |
|
|
|
| 28 May 2017 04:14 AM |
It just returns a code for a reserved server?
|
|
|
| Report Abuse |
|
|
|
| 28 May 2017 04:17 AM |
ok then i guess i'm having trouble understanding the entirety of it
how would i use reserveserver to send two groups of players to two different servers?
what aspect of it is the specific reserved server ID/code? |
|
|
| Report Abuse |
|
|
|
| 28 May 2017 04:19 AM |
oh wait wait hold on
do i use reserveserver to create that code, then use
API:Class/TeleportService/TeleportToPrivateServer
to utilize it?
i'm way too tired for this rn, lol |
|
|
| Report Abuse |
|
|
|
| 28 May 2017 04:20 AM |
local newReservedServerCode = ts:ReserveServer(game.PlaceId)
local playersToTeleportToReservedServer = game.Players:GetPlayers()
ts:TeleportToPrivateServer(game.PlaceId,newReservedServerCode,playersToTeleportToReservedServer)
This will teleport all players currently in the server to a reserved server
|
|
|
| Report Abuse |
|
|
| |
|
|
| 28 May 2017 04:22 AM |
alright cool, i appreciate your help in making my tired mind understand
my only worry is, if i keep calling new server codes really often, will it be an issue? is there any limit to how many i can create/reserve? |
|
|
| Report Abuse |
|
|
|
| 28 May 2017 04:26 AM |
| man i really shouldn't do this stuff when i'm so tired, ### # just realized my worry doesn't matter if i don't datastore it |
|
|
| Report Abuse |
|
|
|
| 28 May 2017 04:26 AM |
I doubt it, it wouldn't be much use if so. Does the wiki mention anything?
|
|
|
| Report Abuse |
|
|
|
| 28 May 2017 04:29 AM |
i had misread the example and assumed every server code would forever be saved
i was worried i'd spam way too many codes and create a large unneeded and potentially overwriting database thingy
if i don't save the random reserveserver code, i don't need to worry i think |
|
|
| Report Abuse |
|
|