|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 10 May 2015 07:05 AM |
so wait... I gotta yield before checking?
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
|
| 10 May 2015 07:06 AM |
| No. You can always run a loop to check when a leader is in a server. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|