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

How do I use FilterStringAsync for a custom chat?

Basically I made a chat and I need to figure out how to filter it. The roblox Wiki doesn't necessarily help. The chat is a screenGUI containing TextLabels and a script in workspace Script in workspace vvv -- local CS = game.Workspace.ChatStorage

game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg)

	local StringValue = Instance.new('StringValue')
	StringValue.Parent = CS
	StringValue.Name = player.Name..': '..msg
end)

end)

1 answer

local StringValue = Instance.new('StringValue')
StringValue.Parent = CS
local fmsg = game:GetService("Chat"):FilterStringForBroadcast(msg,player)
StringValue.Name = player.Name..': '..fmsg

1 comment

0

That didn't work.

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