Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

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

Asked by
Hasburo 150
8 years ago

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

Log in to vote
2
Answered by 8 years ago

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.

1
Color3 values are floats so it should be Color3.new(255/255, 255/255, 255/255) UniversalDreams 205 — 8y
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. RafDev 109 — 8y
Ad

Answer this question