Pass and update a table on all servers

Hello!

I was wondering if there was any way to send a table to every active server every time it updates?

All help is appreciated!

Where does the table come from in the first place?

What do you want this for? Maybe there’s an easier solution.

1 Like

It comes from a ServerScript in ServerScriptService.

I want to send and update a table for a server list system I am making. The table includes the ID and the AccessCode of each private server lobby.

Just use messageService It’s easy and quick

MessagingService | Roblox Creator Documentation might be useful for sending messages, but it’ll get complicated if you’re trying to actually keep something in sync – what happens when a new server joins and it wants a list of the current servers? Who is in charge of sending that?

You might also look at using this HTTP API: https://games.roblox.com/docs#!/Games/get_v1_games_placeId_servers_serverType not sure if it would work for your use case.

Or you could try implementing your own tracker with DataStores: https://scriptinghelpers.org/questions/29399/is-there-a-function-for-getting-a-list-of-servers-in-your-game

I don’t think DataStore is a good solution

There is a limit for using get request

That’s a good point to keep in mind! MessagingService also has limits that you need to keep track of:

Limit Maximum
Size of message 1kB
Messages sent per game server 150 + 60 * (number of players in this game server) per minute
Messages received per topic (10 + 20 * number of servers) per minute
Messages received for entire game (100 + 50 * number of servers) per minute
Messages received per topic (10 + 20 * number of servers) per minute
Messages received for entire game (100 + 50 * number of servers) per minute
1 Like