I’m trying to customize my chat, but it’s color doesn’t changes to green.
--// SERVICES
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Chat = game:GetService("Chat")
--// IMPORTS
local CustomSettings = require(ReplicatedStorage:WaitForChild("ChatInitializer").SettingsModule)
local ChatSettings = require(Chat:WaitForChild("ClientChatModules").ChatSettings)
--// FUNCTIONS
local function CreateCornerInstance(radius, parent)
local NewCorner = Instance.new("UICorner")
NewCorner.CornerRadius = radius
NewCorner.Parent = parent
return NewCorner
end
--// VARIABLES
local Player = Players.LocalPlayer
local PlayerGui = Player.PlayerGui
local PlayerChat = nil
--// SOURCE
repeat task.wait() until PlayerGui:WaitForChild("Chat")
PlayerChat = PlayerGui.Chat
ChatSettings.WindowDraggable = CustomSettings.Behaviour.WindowDraggable
ChatSettings.WindowResizable = CustomSettings.Behaviour.WindowResizable
ChatSettings.ShowChannelsBar = CustomSettings.Behaviour.ShowChannelsBar
ChatSettings.ChatBarBackGroundColor = Color3.fromRGB(0, 255, 0)
if CustomSettings.RoundedCorners.Enabled == true then
if ChatSettings.WindowResizable == true then
CreateCornerInstance(CustomSettings.RoundedCorners.Radius, PlayerChat.Frame.ImageButton)
end
CreateCornerInstance(CustomSettings.RoundedCorners.Radius, PlayerChat.Frame.ChatBarParentFrame.Frame)
CreateCornerInstance(CustomSettings.RoundedCorners.Radius, PlayerChat.Frame.ChatBarParentFrame.Frame.BoxFrame)
CreateCornerInstance(CustomSettings.RoundedCorners.Radius, PlayerChat.Frame.ChatChannelParentFrame)
end
Result:
What I expected: