Here’s the script:
local filteredText = game:GetService(“Chat”):FilterStringAsync(text, fromPlayer, toPlayer)
local filteredText = “”
local success, message = pcall(function() filteredText = game:GetService(“Chat”):FilterStringAsync(text, fromPlayer, toPlayer)
if not success then
warn(“Error filtering text:” .. text.. ” : “ .. message)
— Put code here to handle filter failure–
A couple of things to remember 1) if it contains a PCall, then make sure to release the catch and 2) another thing that people might want to try is auto deletion.
If you have any concerns about the script you may want to add some protection by creating a failsafe. We can do this by using s.script=toro”Getstring”.
This will ensure that it goes to the server. This example is just one of many for that allows you to setup easy chat filtering using a local script.
If you are doing * style filtering, then you need to actually call the database in a different way. In this case, function(get) works better if you do serverwide text so it does not show up at all. Then, if you set up the database correctly the system will be able to log it, using the Iframe if you imbed the chat In come cases, the server will not want the lag, so it will automatically attempt to :refreshmap. So, in some cases, it will allow you to refresh.
Generally, the main reaction to this is the server wanting to spread. If you turned on FilteringEnabled HttpService will decide to not sync changes, unless you are using a command script, then it will react if you have :firstname.lastname@example.org(start)variable1()variable2()true true false true false false;.
This will allow for you to add your systems without disturbing Operations(): True; and not harming your text system. You may want to set “Variables” without making new ones in your wondrous, impeccable script. Generally, we mean area of affect variables, so when searching for things like other users, it does not filter it.
You don’t have to listen to me, you can be a rebel (though I prefer not), and do this your own way. I’m sorry I didn’t put in big, colorful pictures like the other articles, but I’m sure you’ll enjoy this. It is pretty short, and gets to the point. I thank you for reading this, and I hope this inspired you. It did, don’t hide it…