Global Announcements across all servers

Hello,
correct me if I am wrong but to do global announcements through studio (command bars etc) you need a datastore along with Messaging service right?

If you know, can you briefly go through the process for it please? Thank you!

This post has been made before, is that what your looking for?:

1 Like

Hmm I just figured out that MessagingService doesn’t work from studio. I think what I need to do is use OnUpdate on a datastore to be able to make it work from studio.

Yeah that thread doesn’t actually help me as it doesn’t really give me the solution. Thanks anyways though.

1 Like

As said in the post above yours, MessagingService wouldn’t work from Studio.

Who said it doesn’t work from Studio? I believe it’s supposed to.

1 Like

It does work, i’ll just leave this here for you and anyone else needing more information on cross-server messaging

1 Like

So you’re saying It will work if I do it in-studio while testplaying

Unfortunately something like this ins’t possible with MessagingService because the messages don’t go between studio and the live game server. If you are attempting to do this through the command bar or through test play it wont work either. A way to get around this problem is by creating a command bar or panel that you can use in your live game to send the announcements.

If you are looking to send announcements while you are not in game I would look into using HttpService. I won’t be able to tell you how you make the system because I don’t have much experience with using HTTP service related stuff.

4 Likes

Yes that’s why I was saying it wouldn’t work with messagingservice. Im sure it can work with a Datastore that loops since you can access datastores from Studios.

It should work because you are only getting the data and data stores work in studio. However this seems like a very hacky way of making a global announcement system because you aren’t using data stores in there intended way. Data store requests sometimes fail so announcements could be delayed for at least 6+ seconds. You also need to be aware that data stores have limits and it states this on the developers hub:

There are also limits on how often an entire game (all of its active servers) can call data stores. In particular, requests to a specific key can be throttled if it’s being requested from too many servers at once.

2 Likes

This is extremely difficult to do although it is possible because Roblox’s Severs are not built for the purpose of server to server communication especially from Studio Servers to Main Client Servers. It is possible through some form of HTTP Service logging. You could send a string to a Paste Bin and maybe retrieve the Paste Bin Link and then use JSON DECODE to get the string from the paste bin. Meanwhile in all your servers you are checking to see if the originial string value has been changed if it has been changed you can do whatever you want next (Make the announcement visible/Tween it). Although this case has been solved already I am writing this incase others come here for help! And yes this seems to be the most efficient method of Studio to Main Client Communication