Chat messages not working with the new chat system

Hello there.

I am using the new roblox chat system to make server messages down below and for some reason it doesn’t seem to work for me .

local function chat(message)
	game:GetService("TextChatService"):FindFirstChild("TextChannels"):WaitForChild("RBXSystem")
	game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", {Text = message, Color = Color3.fromRGB(255, 171, 67), Font = Enum.Font.Ubuntu})
end

local messages = {
	"GAME IS IN A BETA STAGE. EXPECT A FEW BUGS",
	"Don't forget to leave a like!",
	"Click the ? Icon to learn how to play",
	"More features are coming soon",
	"Use K + J to start your vehicle",
	"The Assist Button is used for helping you park your vehicle in the right place",
	"Testers wanted",
	"New Dizzy Server is up! Join below the description",
    "Type /weather to see the forcast!"
}

chat("")

while true do
	chat(messages[math.random(1, #messages)])
	task.wait(200)
end


What will be causing this issue because I thought it would be the same but I looked at the document and nothing I can see say about new chat system.

  • Sim

Use TextChannel:DisplayServerMessage() instead of StarterGui:SetCore("ChatMakeSystemMessage", ...).

1 Like
  1. For me this doesnt work on “TextChatService” it works for LegacyChatService under ChatVersion.
    image

Edited Script:

local function chat(message)
	game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", {Text = message, Color = Color3.fromRGB(255, 171, 67), Font = Enum.Font.Ubuntu})
end

local messages = {
	"GAME IS IN A BETA STAGE. EXPECT A FEW BUGS",
	"Don't forget to leave a like!",
	"Click the ? Icon to learn how to play",
	"More features are coming soon",
	"Use K + J to start your vehicle",
	"The Assist Button is used for helping you park your vehicle in the right place",
	"Testers wanted",
	"New Dizzy Server is up! Join below the description",
	"Type /weather to see the forcast!"
}

chat("")

while true do
	chat(messages[math.random(1, #messages)])
	task.wait(5)
end

You got the new chat channel, but then never did anything with it.
Replace the line:

game:GetService("TextChatService"):FindFirstChild("TextChannels"):WaitForChild("RBXSystem")

with:

game.TextChatService:WaitForChild("TextChannels"):WaitForChild("RBXSystem"):DisplaySystemMessage(message)
1 Like

Yeah I changed it to the game.TextChatService:WaitForChild("TextChannels"):WaitForChild("RBXSystem"):DisplaySystemMessage(message) and it worked.

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