Text service not working

  1. What do you want to achieve?
    so i want to make a custom chat
  2. What is the issue?
    i did the code right but the text service didn’t censored the text .


ChatFirer.OnServerEvent:Connect(function(Player, Content, Category)
	if Category == true then
		local Success, ErrorMsg = pcall(function()

			local Filtered = TextService:FilterStringAsync(Content, Player.UserId)
			local Formatted = Filtered:GetChatForUserAsync(Player.UserId)
			ChatReceiver:FireAllClients(Formatted, false)
		if not Success then
			warn("Chat Could Not Process ! Reason - "..ErrorMsg)

Testing in Studio? Text filters are disabled in Studio.

No they’re not, they work perfectly fine for me in studio and game.

What’s that “false” argument there when sending the remote? What is it for?

ohh , so this is why …(yes im testing in studio) , Thanks btw .

its just a useless variable , i overthink it when I making this . That “false” didnt do anything .

Filtering works in live servers yes, not in Studio. You’re welcome to perform a search for threads on the DevForum to see developers encountering similar such problems to be told and find that their filter code works as expected when tested in a live session.