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: TeleportToPlaceInstance

Previous Thread :: Next Thread 
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
10 May 2015 06:24 AM
The JobId property of the DataModel is the server's instanceId.
And so how exactly would I know the Id of any Server if say I wanted to make the Player Join a random Server when I'm in the Lobby Place?

"My Life is going Good... but..."
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
10 May 2015 06:31 AM
You would use :TeleportToPlaceInstance() if you wanted to for example, follow someone to a separate server. You just need to use :Teleport() if the server doesn't matter. It should find an open slot in a server or create a new server.
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
10 May 2015 06:34 AM
k, and em, for checking where say, the Group Leader (Group Leader inside the Game) went, would I have to wait and then check or can I check straight away after teleporting him? cos I don't wanna teleport the rest of the people to the same Server they are currently instead of where the leader went :/

"My Life is going Good... but..."
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
10 May 2015 06:37 AM
I actually have no idea if you have to wait for the leader to actually enter the server and then find the leader's server InstanceId. I would assume by using TeleportService, you are teleporting them to a different game, so there won't be a need to check if it's the same server.
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
10 May 2015 06:43 AM
em... it says that u can only Teleport to a 'Place' inside of the same 'Game'...
but if u meant 'Place' not 'Game' then yeah, I might make my ASO Wars Game as I had planned before... I will work on it in maybe a Month or more... and if I do, I'll make different Maps and stuff and place them into the Game as 'Places' but for me they'd be more like 'Servers'... so I MIGHT need to check for that kind of stuff, but I don't know... anyway... thnx...

"My Life is going Good... but..."
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
10 May 2015 06:45 AM
I was talking about :Teleport(). I'm pretty sure that you can teleport to different games with that.
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
10 May 2015 06:50 AM
TeleportToPlaceInstance means that you can wait for a "leader" to join a server, then make everyone in a party follow them.

You can use either DataStore or HttpService.
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
10 May 2015 07:05 AM
so wait... I gotta yield before checking?

"My Life is going Good... but..."
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
10 May 2015 07:06 AM
No. You can always run a loop to check when a leader is in a server.
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
10 May 2015 07:11 AM
so wait...
something like this?

--Teleport Leader

while leader is still here do
wait()
end

--Teleport all of them now

"My Life is going Good... but..."
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
10 May 2015 07:14 AM
Pretty much..

You'd find it easier to loop through a table of players in every server though. Since when the leader leaves, they won't be placed in any real server until they've fully connected.
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
10 May 2015 07:38 AM
but how would I do that?
cos I can't access other Servers from 1 Server :/

"My Life is going Good... but..."
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
10 May 2015 07:52 AM
DataStore.
HttpService.
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
10 May 2015 07:56 AM
hmmm...
I think DataStore would be slow, but I'd definitely stick to it, since I'm a Noob at HTTP XDDD

"My Life is going Good... but..."
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