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

Server Chat Message?

Asked by 8 years ago

An example of this happening is in Framed were when a player gets killed, in the chat itself appears: "x has killed y". How do i manage to do that?

0
@lukeb50 but how did pa00 did that with his game? DragonOfWar900 397 — 8y
0
@lukeb50 Actually, you do not need a custom chat to do it, all you need is to follow the example for SetCore in the ROBLOX Wiki. It's pretty straight forward. SetCore will utilize ROBLOX CoreGui elements for developer use and manipulation, and ROBLOX is still working on new commands to use. M39a9am3R 3210 — 8y

1 answer

Log in to vote
7
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
8 years ago

After recent updates, the technique of making a system chat message has become quite simple. Released on September 8, 2015, ROBLOX officially released the function SetCore() to the Rblx.Lua API.

Some things to keep in mind about SetCore:

  • They can only be used in LocalScripts, so you can not do like SetCore('ChatBarDisabled',true) and expect to mute all players.
  • Not all functions work, some functions like ChatBarDisabled or SendNotification do not work as of this time. They are included, but have yet to be released publicly.

How you can use SetCore to make a system message is quite easy, follow the code below.

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.
})
Hopefully this answer helped. If it did, upvote or if it answered your question, hit accept answer!
0
First of all that code did not help me DogeindustriesYT -5 — 6y
0
@DogeindustriesYT, you could... and this is a crazy idea, ask a question of your own so we can point you in the right direction? Surely an answer to have gotten five upvotes and an acceptance is a reasonable explanation. You could also explain why the code did not help you. M39a9am3R 3210 — 6y
0
You mean RBX.Lua? xXprohax0r1337Xx 74 — 6y
0
You got the idea, right? M39a9am3R 3210 — 6y
0
This helped. This worked, and thank you for explaining it! i understand how the code works, and the code is not faulty :D danielminecrafter66 18 — 2y
Ad

Answer this question