Hi!
Let's begin, shall we?
The FilterStringAsync function is formatted as so:
1 | stirng FilterStringAsync ( |
which is a method of game:GetService("Chat").
FIRSTLY THOUGH: This method is for things like chat systems, from player to player. To use one player, like yours probably is, use:
1 | string FilterStringForBroadcast ( |
which is also a method of game:GetService("Chat"). This is what I'll use this for your context, as it seems more relevant to a notification system. Use the other method if this is not the case, in the way that it came from a player.
Now to implement that into your context. I'm going to use the variables "notificationtext" for the text within the notification and "client" for the player (the local player, the player viewing the notification):
1 | notificationtext = game:GetService( "Chat" ):FilterStringForBroadcast(notificationtext,client) |
*Note: This might only work on the server instead of the client, so consider the implementation of RemoteFunctions if this is the case (I might be wrong). *