System Chat Message Not Working

I am trying to send a message through the chat from a local script for when the player joins the server. I am pretty sure I did everything correctly but the message won’t appear even with everything I have tried.

Script (Local Script):

bc = BrickColor.new("Dark stone grey")

game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = "{System} Welcome to this server!";
Font = Enum.Font.SourceSans;
Color = bc.Color;
FontSize = Enum.FontSize.Size96;	
})
4 Likes

Hey, I answered this on another post today. :SetCore applies to the legacy chat service. For TextChatService, use Channel:DisplaySystemMessage().

4 Likes

How would I change the color and font of the text with TextChatService?

1 Like

Piece of cake, you can use rich text markup, which is fairly close to html. Beware that any typos will cause raw text to be displayed.

Example:

local TextChatService = game:GetService("TextChatService")
local SystemChannel = TextChatService:WaitForChild("TextChannels"):WaitForChild("RBXSystem")

SystemChannel:DisplaySystemMessage(
	"<font family='rbxasset://fonts/families/ComicNeueAngular.json' size='25' color='#FF7800'>Life</font> is like a " ..
	"<font family='rbxasset://fonts/families/ComicNeueAngular.json' size='25' color='#964d00'>box of chocolate!</font>"
)

image

3 Likes

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