'ello,
Someone has recently made a custom chat for me for a game that is coming up, however it is not filtered, he doesn't know how to filter it so I was wondering if anyone here could assist me with making it filtered.
'ello,
Someone has recently made a custom chat for me for a game that is coming up, however it is not filtered, he doesn't know how to filter it so I was wondering if anyone here could assist me with making it filtered.
fortunately I made a chat a couple of days ago and I now know how to do filtering, to filter it you need to do so via the chat
game.Chat:FilterStringForBroadcast(message, player)
the variable "message" should be what you want filtering and the variable "player" should be who the message is from so for example:
message = "Hi"
player = game.Players.matpoo007
x = game.Chat:FilterStringForBroadcast(message, player)
print(x)
hope this helps, also you wont see the filtering in action in studio you have to be ingame to see it.
This discussion is preserved as it was. New answers, comments, and votes are closed.