How does displaymessage work?

Hey all, does anyone know how to properly use “TextChannel:DisplaySystemMessage()”?

I am having issues figuring out how to set it up and have it run, and its not working properly, how does anything even send? I have tried using it and its just not printing, and setting .Status to success, with no visual clue for it sending.

image


1 Like

Hello, just to make sure, you’re running this script in a LocalScript right? From the docs, it says it must be ran on client and not on server.
If you want to display the same message to all clients from the server, you could use remote events and then display the message locally to each client :+1:

1 Like

Yeah, Its ran on a local script.

Try writing TextChannels.RBXSystem... instead of TextChannels[1]...

TextChannels[1] is already RBXSystem.
Its formatted to be a table with channels, but I will take a look.

Just checked it.


Somehow it works now???

Now its gone again???


roblox is really inconsistent

image
Decided to use a onmessageincoming

It’s because you’re sending the message on initial game start.
Try putting either one of these lines before you send the system message:

repeat task.wait() until game:IsLoaded()
task.wait(1)

Its not on initial game start. Its waiting task.wait(1) on game load, but the chat doesn’t load when game:isLoaded() actually fires.

I had to do a workaround with onmessageincoming