Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how to filter my custom chat?

okay so i made a custom chat off a tutorial and but then i read some articels that filtering isent enabeld on this custom what and that i can get a warning or even a ban for this how can i make this chat filter scripts down bellow

local script inside the frame

local chatbox1 = script.Parent.CB1
local chatbox2 = script.Parent.CB2
local chatbox3 = script.Parent.CB3
local chatbox4 = script.Parent.CB4
local chatbox5 = script.Parent.CB5
local chatbox6 = script.Parent.CB6

game.Workspace.ChatStorage.ChildAdded:Connect(function(chatstuff)
	chatbox1.Text = chatbox2.Text
	chatbox2.Text = chatbox3.Text
	chatbox3.Text = chatbox4.Text
	chatbox4.Text = chatbox5.Text
	chatbox5.Text = chatbox6.Text
	chatbox6.Text = chatstuff.Name
	chatbox1.TextColor3 = chatbox2.TextColor3
	chatbox2.TextColor3 = chatbox3.TextColor3
	chatbox3.TextColor3 = chatbox4.TextColor3
	chatbox4.TextColor3 = chatbox5.TextColor3
	chatbox5.TextColor3 = chatbox6.TextColor3
	chatbox6.TextColor3 = Color3.new(math.random(255)/255,math.random(255)/255,math.random(255)/255)
end)

script in workspace

local chatstorage = game.Workspace.ChatStorage

game.Players.PlayerAdded:Connect(function(plr)
	plr.Chatted:Connect(function(theirmessage)
		local stringval = Instance.new("StringValue",chatstorage)
		stringval.Name = plr.Name..":"..theirmessage
	end)
	
end)

1 answer

It might be helpful to read up on the wiki before asking. Here's two articles I found in 10 seconds:

https://developer.roblox.com/en-us/api-reference/function/Chat/FilterStringAsync https://developer.roblox.com/en-us/api-reference/function/TextService/FilterStringAsync

Also, the consequences for not filtering strings for custom chats,guis, etc is putting your game under review until you do something about it. Atleast from what I've read.

1 comment

0

I dont understand the concept verry well i read trough but i dont know how to apply it to my scripts

This discussion is preserved as it was. New answers, comments, and votes are closed.