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

I cannot add a filter correctly.. Can anyone help please?

Asked by 5 years ago
Edited 5 years ago

I have known that if I don't filter all text my game will go down and so I decided to try and add it but was making me go crazy because I didn't know how to fit the pieces to together and etc.

Now I am not an experienced scripter I am a beginner and can't understand the wiki at all. I have tried looking through the forums here and searching up on google to no avail.

Here is the code I am trying to add the filter on


wait(0.1) -- Makes the script work

local text = script.Parent.text -- Adds a variable 



local part = text -- Runs script again if value is changed
part.Changed:connect(function (property)
    game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{ 
    Text = ("[SERVER]: " .. text.Value);
    })
end) --

-- Runs for first time no change needed can be deleted
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{ 
    Text = ("[SERVER]: " .. text.Value);
})


I know this isn't filtered because when I put in the word "marry" it doesn't filter it (checked on studio and in-game) and in-game it usually filters it. Can anyone give me some help? |Thank you very much.

0
is this script or localscript supermariodeadtolive 55 — 5y
0
localscript MySQL_Syntax 0 — 5y
0
localscripts cannot filter text. supermariodeadtolive 55 — 5y
0
How can I make it where it can do both and not make roblox take down my game? MySQL_Syntax 0 — 5y
View all comments (2 more)
0
................ supermariodeadtolive 55 — 5y
0
its deperecated supermariodeadtolive 55 — 5y

Answer this question