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

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

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.

4 comments

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.

0

where do I put the script?

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.

0

No.. I meant like, do I make a local script and put it in the Starter GUI?

1 answer

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

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