✓ Accepted answer
Well, if you have seen a ROBLOX chat with custom colors, but otherwise the only way to make a chat have custom colors is making a custom chatUI. I know how to do that, I'm not saying these other users are not thinking, they are equally just as smart. But, none the less. Messor to the rescue!
Using the** SetCore method ** in a LocalScriptcan make a player's chat different colors.
SetCore method: http://wiki.roblox.com/index.php?title=API:Class/StarterGui/SetCore
Custom Chat: http://wiki.roblox.com/index.php?title=Making_a_Pseudo_chat_GUI
So here's a example directly from the Wiki. Although I will add some custom code to it. :)
Your function parameters are...
Arg #1: String (Required)
Arg #2: Variant (Required)
And of course your functions, for this one we will be using ChatMakeSystemMessage
PointsNotificationsActive (boolean);
BadgesNotificationsActive (boolean);
ChatWindowSize (UDim2);
ChatWindowPosition (UDim2);
ChatBarDisabled (boolean);
ChatMakeSystemMessage (table);
SendNotification (table);
TopbarEnabled (boolean);
local nClr3 = function(Color)
if BrickColor.new(Color)~="Gray" then
return BrickColor.new(Color).Color
else
return Color3.new(0, 1, 1)
end
end
function nChat(Message, Color)
game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = Message;
Color = nClr3(Color);
Font = Enum.Font.SourceSans;
FontSize = Enum.FontSize.Size24;
})
end
So how I would go about making the function working is..
nChat("Hello world!", "Lime green")
7 comments
It's not possible unless you're using a Custom Chat Gui.
I've seen people do it before though?
Those people you've seen do it before have developed their own Chat gui system. If you develop it yourself you can manipulate the chat colors. Otherwise you cannot.
You can look here if you want to start making your own chat gui: http://wiki.roblox.com/index.php?title=Making_a_Pseudo_chat_GUI
Actually, there is a way. SetCore. But then you will get a duplicate. Unless you disable the chat textbox.
All hail MessorAdmin
#AllHailMessorAdmin