What is the difference of them both, they both use FilterStringAsync
but are both in two Services:
game:GetService("Chat"):FilterStringAsync()
game:GetService("TextService"):FilterStringAsync()
What is the difference of them both, they both use FilterStringAsync
but are both in two Services:
game:GetService("Chat"):FilterStringAsync()
game:GetService("TextService"):FilterStringAsync()
According to the documentation,
Chat:FilterStringAsync
filters a string using filtering that is appropriate for the sending and receiving player. If the filtered string is to be used for a persistent message, such as the name of a shop, writing on a plaque, etc, then the function should be called with the author as both the sender and receiver.
This function should be used every time a player can enter custom text in any context, most commonly using a TextBox. Some examples of text to be filtered:
Custom chat messages
Custom character names
Names for a shop in a tycoon-style game
As for TextService:FilterStringAsync
, in short, it’s used to filter text being received from a user in general.
I suggest you read the documentation for more info:
Okay Thanks i did but i could use both for Filtering it makes no difference, why there is two Times the same Function then, i dont see the difference