Trying to create a server system message

Hi all, I am a attempting to try and make an automatic server system message. However, the messages will not show up in the chat.

sm = BrickColor.new (“New Yeller”)
game.StarterGui:SetCore(“ChatMakeSystemMessage”, {
Text = “Testing message”;
Font = Enum.Font.ArialBold;
Colour = sm.Color;
FontSize = Enum.FontSize.Size96;
})

I have tried looking at other posts and what they have done but nothing worked.

8 Likes

The script works for me.

Are you using it in a LocalScript?
Are you running it on the Client?

It is just in a regular script in the severscriptservice

Put it in a LocalScript on the Client. As shown below.
image
Hope this helps! :slight_smile:

5 Likes

Cheers, it worked fine! Thanks for the help. Also what is the roblox default font and font size?

FontSize is the size of the text. You can check here

I’m however not sure what you mean by “Roblox Default Font”
If you mean font. You can check them here

Font!


The Gotham font seems to match well with the Roblox’s current font on the site. The size depend on where you place it out.

Sorry that seemed a bit confusing. What I meant was what is the default font style and size displayed in roblox’s chat system?

Rushed across the Internet, found this:

Font is SourceSansBold, the size is 18 or 24, and the TextStrokeTransparency is .75. That should make it look virtually like the normal chat.

2 Likes

The default font in the Roblox chat is SourceSansBold

For the FontSize. It’s 18.

1 Like

Another issue has just arose. The colour of the text as allocated in the script isn’t being displayed as said. I have it set to 255,0,0 and it just comes up as white.

game.StarterGui:SetCore(“ChatMakeSystemMessage”, {
Text = “[System Message] Welcome!”;
Font = Enum.Font.SourceSansBold;
Colour = Color3.new(255,0,0);
FontSize = Enum.FontSize.Size18;
})

1 Like

Ahem.

Color3.fromRGB(255,0,0) and American spelling variant of Colour, it’s Color and not Colour.

1 Like

Ahh, my bad. It is the littlest things that can muck up your script! Also I don’t need the colour from rgb think, it works fine without it.

Thanks :smile:

1 Like

It “matches well” because that’s the exact font that the site uses.

Off-topic remark

I remember when there was a huge uproar about the font changing on the site. Nowadays, no one even cares. I personally like this better than whatever was used before.

1 Like

If you want to send it to all Players try doing this.

Server Script

local remote = nil -- Replace with RemoteEvent
remote:FireAllClients({
Text = “[System Message] Welcome!”;
Color = Color3.fromRGB(255,0,0);
Font = Enum.Font.SourceSansBold;
FontSize = Enum.FontSize.Size18;
})

Client/LocalScript (Put in StarterGui)

local remote = nil -- Replace with RemoteEvent
remote.OnClientEvent:Connect(function(chatProperties)
game:GetService(“StarterGui”):SetCore(“ChatMakeSystemMessage”,chatProperties)
end)

5 Likes

wait(3)

local chatframe = script.Parent.Chat.Frame.ChatChannelParentFrame[“Frame_MessageLogDisplay”].Scroller

local clone = chatframe.Frame:Clone()

clone.Parent = chatframe

clone.TextLabel.Font = Enum.Font.Cartoon

clone.TextLabel.TextColor = BrickColor.new(“Teal”)

clone.TextLabel.Text = “{Server}: lucky opened egg and hatched dragon OMEGA (0.00001%)”

Put this Code in Local Script in StarterGui
I Tested It works.

this thread was made 2 years ago

1 Like