|
| 24 Sep 2017 09:29 AM |
Like, I made my own chat gui feature that replaces the Roblox default chat for a game I'm making, but I have no clue how to make a spam filter/swear filter for it.
And no I don't want the one Roblox made, that one is terrible. The one I want, for example, is like in the script you put in specific words to be filtered and such.
Can someone help please?
I'll pay you if you do it for me |
|
|
| Report Abuse |
|
|
22618709
|
  |
| Joined: 25 Dec 2011 |
| Total Posts: 19221 |
|
|
| 24 Sep 2017 09:34 AM |
Roblox forces the use of their own filter
|
|
|
| Report Abuse |
|
|
|
| 24 Sep 2017 09:37 AM |
Don't tell him that, just let him get banned.
|
|
|
| Report Abuse |
|
|
|
| 24 Sep 2017 09:37 AM |
| Some other games use their own chat filter, one game I know called The Maze Runner uses their own filter, the dude who made the game used his own filter where he puts in his specific word filter. I want something like that |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2017 09:40 AM |
| Dude what are you saying? Why would I get banned for having a custom filter? Many other games have their own filter, and they don't get banned. Clonetrooper's old Roblox game has his own fill-in-the-blank filter thing |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2017 09:47 AM |
I'll do it. Tested, and works.
local TO_FILTER = {"noob", "idiot"} local function FILTER(sentence) local lower = sentence:lower() local posit = {} for i = 1, #TO_FILTER do local start,stop = lower:find(TO_FILTER[i]:lower()) if start then posit[ #posit + 1 ] = {start, stop} end end for i = 1, #posit do sentence = sentence:sub(1, posit[i][1]-1) .. string.rep("$", posit[i][2]-posit[i][1]+1) .. sentence:sub(posit[i][2]+1) end return sentence end
print(FILTER("Sometimes, Harold, you're such a noob of an idiot."))
|
|
|
| Report Abuse |
|
|
|
| 24 Sep 2017 09:50 AM |
"Dude what are you saying? Why would I get banned for having a custom filter?" Because you're not allowed to have a custom filter anymore. Not now that Roblox is using CommunitySift. I gave you that script, go ahead and use it. Your game probably won't be deleted until someone reports it anyways, and since your game is probably never going to get popular, that may never happen. But if you do get banned, it's no skin off my own back.
|
|
|
| Report Abuse |
|
|
|
| 24 Sep 2017 09:50 AM |
| And where would I put that? I made my own chat feature, so...? |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2017 09:51 AM |
"I made my own chat feature, so...?" So you should know what to do. If you can script a working chat system, I'm sure you can call a function.
|
|
|
| Report Abuse |
|
|
|
| 24 Sep 2017 09:52 AM |
| I made the chat feature because I had help from people from this subforum partially. I'm an semi intermidiate scripter, not advanced.. I need help whenever I code things all the time sadly |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2017 09:54 AM |
Oh, I see. Well, wherever it displays the message to the GUI, do something like this instead.
Rather than TextLabel.Text = message do TextLabel.Text = FILTER(message)
|
|
|
| Report Abuse |
|
|
|
| 24 Sep 2017 11:02 AM |
Actually the game MIGHT get popular, since I'm making a The Maze Runner game that will basically be replacing the one with people playing it now, considering the fact that the owner like 85 percent abandoned the game and almost never puts new content anymore for nearly 2 years.
And The Maze Runner game has a ton of people playing and want a new version of it, so that's exactly what I'm doing.
Right now the one with people in it has about 120 people playing right now, it was a pretty popular game in 2016 with from what I remember 2 thousand people on average a day, so yeah,
It's a long shot for me but I'm pretty popular on his game so yeah it's a chance. |
|
|
| Report Abuse |
|
|
| |
|