How to make Global Chat?

I want to make a system were one person chats in a server, it gets sent to every other server in the game. Possibly make ONLY my chats go global.

I am not the best scripter and I have no idea on how to go with this.

All suggestions are appreciated!

Check out MessagingService. It’s for making things happen in every server.

1 Like

That just gave me an idea of making a game based out of Chatting…

Every time a player chats they get a point in their leaderstats.

As gotee said before using msesagingservice seems to be the best way! I suggest looking into it

You can send strings to every server using it. Just make sure to filter whatever you send to prevent another rhubarb incident

Coupled with the MessagingService suggestions above, something you may want to look into is temporarily adding a ChatSpeaker to represent the player sending the message. Through SubscribeAsync, retrieve the relevant data (player who sent the message as well as what they sent) and have that ChatSpeaker say the message. You can then delete or cache the speaker for later use.

Ideally you should connect a separate process that checks when SaidMessage fires so that you can pack the relevant data into a table to be sent over through MessagingService.