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.

6 comments

0

is this script or localscript

0

localscript

0

localscripts cannot filter text.

0

How can I make it where it can do both and not make roblox take down my game?

0

................

0

its deperecated