Need help making a server chat

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to make a message show on a client’s chat.
  2. What is the issue? Include screenshots / videos if possible!
    Roblox changed the chat appearance, and the functions, so all the older solutions have been outdated. So, the chat seems to have broken completely.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    All the solutions are outdated.

m
e

2 Likes
local textChatService = game:GetService("TextChatService")

while true do
	textChatService.TextChannels.RBXGeneral:DisplaySystemMessage("hi")
	task.wait(5)
end
1 Like

Thank you, the solution you provided works well.

1 Like

Also, one question, how do I change its color?

Perhaps this DevForum reply by a ROBLOX Staff member could help? It seems to be the exact same issue.
https://devforum.roblox.com/t/properties-of-displaysystemmessage-textchatservices/2051223/6?u=westside216

Also, unrelated to your original issue, but I notice you’re using wait() over task.wait()
I would advise that you use task.wait() over wait() for all future programming you may do.

wait() has performance issues that have been highlighted by many others on the forum if you wish to know the technical reasons.

It supports RichText.

local textChatService = game:GetService("TextChatService")

local message = "test"
local color = Color3.fromRGB(255, 0, 0)

local richText = `<font color="rgb({color.R * 255}, {color.G * 255}, {color.B * 255})">{message}</font>`

while true do
	textChatService.TextChannels.RBXGeneral:DisplaySystemMessage(richText)
	task.wait(5)
end

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