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

How do I make those automatic in-game chat messages?

Asked by
0msh 333 Moderation Voter
7 years ago

As the title says, is there a way to give tips to players using in-game chat, like the one in Phantom Forces, that gives tip every --- seconds. I have no clue how to do this, and I did a lot of research but none of the result is relevant.

1
This page may help: http://wiki.roblox.com/index.php?title=API:Class/StarterGui/SetCore#ChatMakeSystemMessage. This is called locally, and will make a message appear in that player's chat. XAXA 1569 — 7y
0
where do I put the script? 0msh 333 — 7y
0
Since it should be called locally, it will have to be in a LocalScript. If you want to test the example there in studio, Play Solo and paste the script in the command bar. There should be a message in the chat. XAXA 1569 — 7y
0
No.. I meant like, do I make a local script and put it in the Starter GUI? 0msh 333 — 7y

1 answer

Log in to vote
0
Answered by
4D_X 118
7 years ago

It's pretty easy, use this in a local script and it will make a server message.

game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
    Text = "Welcome to my game!"; --This is a required field, it will allow you to set the message to any string you want.
    Color = Color3.new(0,1,1); --This is optional, it will allow you to add a custom color to the chat, however will default to Color3.new(255/255, 255/255, 243/255) if not set.
    Font = Enum.Font.SourceSans; -- Optional, defaults to Enum.Font.SourceSansBold --This is optional, this field will allow you to change the font of the text to any of the current 7 fonts you want.
    FontSize = Enum.FontSize.Size24; -- Optional, defaults to Enum.FontSize.Size18 --This is once again optional, and you can change it to any of the existing sizes.
})

You can find more about it on the Wiki with this link: http://wiki.roblox.com/index.php?title=API:Class/StarterGui/SetCore#ChatMakeSystemMessage

Ad

Answer this question