Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I use FilterStringAsync for a custom chat?

Asked by 6 years ago

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

Log in to vote
0
Answered by
Meqolo 78
6 years ago
local StringValue = Instance.new('StringValue')
StringValue.Parent = CS
local fmsg = game:GetService("Chat"):FilterStringForBroadcast(msg,player)
StringValue.Name = player.Name..': '..fmsg
0
That didn't work. Skelriq 0 — 6y
Ad

Answer this question