So I am making custom chat system and I started first making my own custom ChatMakeSystemMessage this is the function that needs to be called when making the message
function Functions:ChatMakeSystemMessage(Text,Color,Font,Size)
print(Text)
print(Color)
print(Font)
print(Size)
local Success,Erorr = self:Create("TextLabel",{
BackgroundTransparency = 1,
TextColor3 = Color,
Font = Font,
TextSize = Size,
Text = Text,
Name = self.Messages + 1,
Parent = ChatMessageArea
})
if not (Success) then
print(Erorr)
return
end
if (Success) then
table.insert(self.MessageTable,Erorr)
--self:Organize()
return
end
end
Call
ChatInstall:ChatMakeSystemMessage(unpack({
Text = "{System} Your friend has joined you ",
Color = Color3.fromRGB(255,255,255),
Font = Enum.Font.Cartoon,
Size = Enum.FontSize.Size24
}))
But when I call the functions every argument is printed as nil.
Chat filtering has already been addressed in a different thread, this is regarding a function intended to send system messages to their custom chat. Text filtering is not required on non-custom input systems (developer-inputted text), however there is an expectation that the words you use are appropriate.