FilterStringAsync()
and FilterStringForBroadcast()
doesn't work for me. Any help?
Thanks in advance!
Answers, comments and criticism are welcome :)
Make sure this is in a local script. Also put it in starterplayerscripts
local playerFrom = game.Players.LocalPlayer -- Local player (player sending message) local message = "Hello!","Idk" -- You can add more words to filter by doing this FilteredString = game:GetService("Chat"):FilterStringForBroadcast(message, playerFrom) -- Print the filtered string print(FilteredString)
This code checks whether the player says a message if they do then it will filter the string.