How do I use FilterStringAsync() from the service; TextService?
I'm very confused on how to use FilterStringAsync
from a Service called, TextService
.
Here is the script, NOTE: it's in a server script!
3 | local other = string.sub(msg, 7 ):upper() |
4 | local filter = TS:FilterStringAsync(other,player.UserId) |
6 | MessageEvent:FireAllClients( "[WARNING]: " ..filter,BrickColor.new( "Crimson" ).Color) |
For the error, it states that Line 6
has the error. The error is; attempted to index local 'filter' (a userdata value)
, any help?