I want to change some stuff in the chat scripts, WITHOUT forking. I can change some stuff, for example
Chat:RegisterChatCallback(Enum.ChatCallbackType.OnClientFormattingMessage, function()
return {
ClassicChatEnabled = true,
BubbleChatEnabled = true,
DefaultFont = Enum.Font.Gotham,
ChatBarFont = Enum.Font.Gotham,
}
end)
However, I want to enable RichText on the chat. I have figured out to do it via forking. Inside of the Util module, there’s this function, and by simply setting BaseMessage.RichText, it enables RichText. However, I don’t want to rely on forked scripts, as whenever I have forked in the past, Roblox chat gets an update without informing anyone, and I have to spent several hours tryna get my changes in the forked chat to match with the new chat.
function methods:CreateBaseMessage(message, font, textSize, chatColor)
local BaseFrame = self:GetFromObjectPool("Frame")
BaseFrame.Selectable = false
BaseFrame.Size = UDim2.new(1, 0, 0, 18)
BaseFrame.Visible = true
BaseFrame.BackgroundTransparency = 1
local messageBorder = 8
local BaseMessage = self:GetFromObjectPool("TextLabel")
BaseMessage.Selectable = false
BaseMessage.Size = UDim2.new(1, -(messageBorder + 6), 1, 0)
BaseMessage.Position = UDim2.new(0, messageBorder, 0, 0)
BaseMessage.BackgroundTransparency = 1
BaseMessage.Font = font
BaseMessage.TextSize = textSize
BaseMessage.TextXAlignment = Enum.TextXAlignment.Left
BaseMessage.TextYAlignment = Enum.TextYAlignment.Top
BaseMessage.TextTransparency = 0
BaseMessage.TextStrokeTransparency = 0.75
BaseMessage.TextColor3 = chatColor
BaseMessage.TextWrapped = true
BaseMessage.ClipsDescendants = true
BaseMessage.Text = message
BaseMessage.Visible = true
BaseMessage.Parent = BaseFrame
BaseMessage.RichText = true
return BaseFrame, BaseMessage
end
So is there a way I can do this, using something like I have above to make changes to the chat?