generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: having trouble understanding ReserveServer

Previous Thread :: Next Thread 
cloakedyoshi is not online. cloakedyoshi
Joined: 15 Jul 2009
Total Posts: 18321
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
cloakedyoshi is not online. cloakedyoshi
Joined: 15 Jul 2009
Total Posts: 18321
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
cloakedyoshi is not online. cloakedyoshi
Joined: 15 Jul 2009
Total Posts: 18321
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
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
28 May 2017 04:14 AM
It just returns a code for a reserved server?


Report Abuse
cloakedyoshi is not online. cloakedyoshi
Joined: 15 Jul 2009
Total Posts: 18321
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
cloakedyoshi is not online. cloakedyoshi
Joined: 15 Jul 2009
Total Posts: 18321
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
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
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
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
28 May 2017 04:21 AM
Yes you do


Report Abuse
cloakedyoshi is not online. cloakedyoshi
Joined: 15 Jul 2009
Total Posts: 18321
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
cloakedyoshi is not online. cloakedyoshi
Joined: 15 Jul 2009
Total Posts: 18321
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
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
28 May 2017 04:26 AM
I doubt it, it wouldn't be much use if so. Does the wiki mention anything?


Report Abuse
cloakedyoshi is not online. cloakedyoshi
Joined: 15 Jul 2009
Total Posts: 18321
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image