Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make a filtering system?

Asked by
Bisoph 5
7 years ago
Edited 7 years ago

I tried to remake Roblox's old chat system. It works, but I know I need to make it filter so my game doesn't get banned.

For the filtering system, I wrote this:

01--Server Script--
02local TextService = game:GetService('TextService')
03 
04function game.ReplicatedStorage.FilterText.OnServerInvoke(toPlayer, fromPlayer, txt)
05    print(toPlayer, fromPlayer
06    )
07    local textObject
08    local s = pcall(function()
09        textObject = TextService:FilterStringAsync(txt, fromPlayer.UserId)
10    end)
11    if s then
12        return textObject:GetChatForUserAsync(toPlayer.UserId)
13    else
14        return '???'
15    end
View all 32 lines...

I'm not sure if it's an error or not, but when I try to say something that usually gets filtered when I play Roblox, it doesn't. Please help me fix this!

EDIT: wait it worked all along nvm

1 answer

Log in to vote
1
Answered by 7 years ago
1game:Destroy()
0
XD User#17125 0 — 7y
0
10/10 answer TheeDeathCaster 2368 — 7y
0
im reporting dun dun dunnnnn (not really) Bisoph 5 — 7y
Ad

Answer this question