How do I send announcement messages from the server?

Hello,

As the title suggests, I am trying to find out how I can send a message to the player chat, the same place where players talk, but a sever announcement. Lets say how VIP game passes work in most games. “PLAYER has joined!” in gold text. How do people accomplish that? Does it still work after the changes Roblox has made, such as the separate age groups? If it doesn’t then I’ll just do it some other way, but if this is still a valid method, I would like to do it this way.

What I’m trying to do specifically:

1 - Send random server messages every so often for my game, just atmospheric messages.
2 - Send a join message in chat when a player joins, naming said player and then announcing their arrival (nothing special)
3 - A default join message when anybody joins the server and possibly even a message when someone leaves.

IF possible, I’d like to incorporate rich text, so say I can highlight the names a different color. If someone could give me a minor example of how a system like this would work, that’d mean the world to me. I’m a solo dev struggling to understand scripting so any and all help goes a long way.

Have a great rest of your day, stay safe.
ACherryPy.

2 Likes

You can display system messages for this. They need to be called on each client but the messages won’t be hidden due to age groups or an unchecked account. The default chat UI supports rich text in system messages. There’s a default channel for system messages you can use called RBXSystem. If you’re familiar with the events for players joining/leaving, it’s just a matter of gluing all these ideas together in a client script.

If you want to highlight players based on pass ownership/group roles (or require them to appear in these messages), it’ll be a bit more work for a decent implementation.

2 Likes

I looked through the documentation and tried making a system and it didn’t give me any errors but also didn’t send a message, not sure if I did something wrong but I couldn’t get it to work.

You didn’t post the code you’re trying to use. Without seeing your implementation, it is impossible to tell if the issue is with how you are calling the system message or where you are running the script.

1 Like

Got a really good point. Sorry, been a while since I tried using Dev Forum to make a post like this. Gonna test run again in a separate studio and if it doesn’t work there I’ll come back.

i got it working, not sure what my issue was prior but now it’s working. Now i just need to apply it to joining players and checking their stats. thank you guys.

Just make sure you’re handling the player joining on the server side and using a RemoteEvent to trigger the client script. If you try to run all that logic directly in a LocalScript, it won’t be able to check stats or gamepass ownership reliably.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.