|
| 08 Jul 2015 08:53 PM |
How can you transfer table values from servers back to the lobby?
So you can get the server's instance id and server count, etc. etc.
And people in different servers in the lobby will get the same updated value. |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2015 08:55 PM |
If it's the same game/universe, use datastore if it's a different game, encode to json, then decode the json in the new game. |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2015 09:01 PM |
It's in the same universe.
I insert the new sever instance id to the data store when someone joins the server, but i don't know how to update it for all the servers back in the lobby. |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Jul 2015 09:11 PM |
| Datastore is for the entire game/universe. Doesn't matter which place, as long as it's in your game |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2015 09:17 PM |
| So would i need to use a while loop to keep constantly checking the value? |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2015 09:32 PM |
Or use this http://wiki.roblox.com/index.php?title=OnUpdate |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2015 09:47 PM |
omg thanks
so what happens if a server dies and i want to remove it? |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2015 10:31 PM |
| and how would i get all the keys and values of those keys once it updates? |
|
|
| Report Abuse |
|
|