It seems that you are attempting to filter text via a localscript, if so the script wont work at all.
Text filtering is via the server and not the client.
Here's how to fix it.
So just chuck a remote function in replicated storage first.
Now this is the script I wrote awhile back for filtering text in my suggestion system.
CLIENT SCRIPT
local MSGA = "Your text"
local player = game.Players.LocalPlayer
local filterString = game.ReplicatedStorage.RemoteFunction:InvokeServer(MSGA)
wait()
MSGA = filterString
wait(0.1)
print(MSGA)
SERVERSCRIPT (Serverscriptservice)
game.ReplicatedStorage.RemoteFunction.OnServerInvoke = function(player,MSG)
return game.Chat:FilterStringForBroadcast(MSG,player)
end
Its super simple once you understand how the client and server interact.
Hope this helps!
1 comment
Doesn't seem to work... I'm trying to run the "Clientscript" through a serverscript.. Anyways to filter through a serverscript? And not client?