You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I want to make a message show on a client’s chat.
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.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
All the solutions are outdated.
local textChatService = game:GetService("TextChatService")
while true do
textChatService.TextChannels.RBXGeneral:DisplaySystemMessage("hi")
task.wait(5)
end
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.
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