Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is there a way for an automated message to display on the chat?

Here's an example; http://prntscr.com/an3d90

As of recently, I've been seeing a lot of automated messages appearing in the chat. For example, admin scripts sometimes display "This game is using blah blah blah" in the chat when you first join a game.

I'm simply looking for a method, or I'm wondering if anybody could link me to a wiki page if there is one regarding this.

1 answer

✓ Accepted answer

In short yes, now here is how.

-- Place in StarterGui.
 
function onPlayerAdded(player)
	game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
	Text = ("[SERVER]: Welcome."); -- Message
	Color = Color3.new(255,255,255); -- Color in RBA
	Font = Enum.Font.SourceSansBold; -- Font Type
	FontSize = Enum.FontSize.Size18; -- Font Size
})
end

Good luck.

2 comments

1

Color3 values are floats so it should be Color3.new(255/255, 255/255, 255/255)

0

Why place in StarterGui? Put it in StarterPlayerScripts and don't make it a function, so it doesn't take up memory parsing when it's not necessary.

This discussion is preserved as it was. New answers, comments, and votes are closed.