RP Name Filtering Censoring Help?
Well not really chat filtering but I'm filtering a RP Name Gui so it censors text. (It creates a Model inside your character)
01 | v = game.Players.LocalPlayer |
02 | for a, mod in pairs (v.Character:children()) do |
03 | if mod:findFirstChild( "NameTag" ) then |
04 | v.Character.Head.Transparency = 0 mod:Destroy() |
08 | local char = v.Character |
09 | local mod = Instance.new( "Model" , char) |
10 | mod.Name = script.Parent.Text |
11 | local cl = char.Head:Clone() |
15 | local modtxt = mod.Name |
17 | local hum = Instance.new( "Humanoid" , mod) |
23 | local success, filteredMessage = pcall ( function () return v.mod:FilterStringForBroadcast(v.mod.Name) end ) |
25 | filteredMessage = "<Filter has failed.>" |