Hi, so i'm trying to make a custom chat gui feature and so I need to filter my chat. But when I try to do it I get this error: Unable to cast value to Object.
Filter Line:
local filteredText = game.Chat:FilterStringForBroadcast(Message, Speaker)
Where Message is coming from:
ChatEvent.OnClientEvent:connect(function(Request, Message, Speaker)
Request = Request:lower()
if Request == "chat" then
CreateMessage(Message, Speaker)
end
end)
Thanks :)

4 comments
I notice you used the code from my old chat system video :D. Most of the content in that video is very out of date, so I would recommend changing a lot.
Oh yeah! Thanks a lot for the video it helps me a lot for custom chat and would you know how to fix it since you made it? Its fine if you dont
What the CreateMessage() function?
I posted the CreateMessage() function