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

How do I use ChatSettings.BackGroundColor?

Asked by
Subbix -5
7 years ago

Hello, I have a quite odd question as I've been trying to manipulate ROBLOX's chat settings and customize it. I've tried this way which for an odd reason doesn't have any errors.

In basic sense I'm trying to change the background color of the chat area, I tried to change the text instead which I ultimately failed in the same way.

ServerScript in ServerScriptService

local Players = game:GetService("Players")
local ChatService = game:GetService("Chat")
local ClientChatModules = ChatService:WaitForChild("ClientChatModules")
local ChatSettings = require(ClientChatModules:WaitForChild("ChatSettings"))


local whitelist = {
    [191277713] = true;
}


Players.PlayerAdded:Connect(function(plr)
    plr.Chatted:connect(function(msg)
        if not whitelist[plr.UserId] then
            ChatSettings.BackGroundColor = Color3.new(1, 1, 1)
        else
            ChatSettings.BackGroundColor = Color3.new(255, 255, 0)
        end
    end)
end)

Answer this question