Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

FilterStringForBroadcast is not giving me errors nut is not filtering strings please help?

So This is my Client:

local SendChat = game:GetService("ReplicatedStorage"):WaitForChild("SendChat")

script.Parent.FocusLost:Connect(function()
	SendChat:FireServer(script.Parent.Text)
end)

This is my Server:

local SendChat = game:GetService("ReplicatedStorage"):WaitForChild("SendChat")
local cs = game:GetService("Chat")

SendChat.OnServerEvent:Connect(function(plr, message)
	local filtered = cs:FilterStringForBroadcast(message, plr)
	cs:Chat(plr.Character, filtered, Enum.ChatColor.White)
end)

I am getting no errors though while testing using the f word because I know that is 100% filtered it did not filter, also using it with 2 players in a server did not work and it still went unfiltered please help.

1 answer

✓ Accepted answer

This is simply because roblox’s filtering system is not enabled in any test mode, either solo, or server. To really get it to work, test it in a real server.

This discussion is preserved as it was. New answers, comments, and votes are closed.