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

How to have players have custom chat colors?

Asked by 8 years ago

I know how to make system messages in chat with scripts that you can put the color, text, font. and size in, but how would you make it so that it changes your chat color to something else? Here is my failed olcal script:

game.Players.PlayerAdded:connect(function(Player)
Player.Chatted:connect(function(msg)
if Player.Name == "UltChowsk" then
tab  = {
tab.text = msg
tab.Font = "Legacy"
tab.Size = 24
tab.Color = color3.new(1,1,1)}
game:service("StarterGui"):ChatMakeSystemMessage(tab)




end
end
end)
end)

0
There's 2 ways of changing the color, the first is making the Color3.new() into a decimal, but I usually just divide w/e number of 255 by 255. So I'd put Color3.new(255/255, 0/255, 0/255) OneTruePain 191 — 8y
0
I'm not 100% sure but I believe making your own Chat gui is best for that. yoshi8080 445 — 8y
0
I don't know the exact answer, but one way is to make your own chat gui, or I can see that you put Color = color3.new(). Color is going to get a brickcolor, and color3 is gonna get a different set of color systems NinjoOnline 1146 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

There seems to be some syntax errors in your script:

game.Players.PlayerAdded:connect(function(Player)
    Player.Chatted:connect(function(msg)
        if Player.Name == "UltChowsk" then
            tab  = {
                Text = msg
                Font = "Legacy"
                Size = 24
                Color = color3.new(1,1,1)
            }
            game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", tab)
        end
    end)
end)
0
this script does work, I only have one problem: The message I chat is still in the chat history, know of any way to remove that? UltChowsk 85 — 8y
0
I do not believe it's possible. However, anything typed that begins with a slash does not show up on the chat gui, if that helps. iconmaster 301 — 8y
0
ok, I am just trying to do this like loleris does in mad games for vip users UltChowsk 85 — 8y
Ad

Answer this question