So basically I have 2 scripts, this script is what sends the chat to a folder.

chatstorage = game.Workspace.CStorage
local Chat = game:GetService("Chat")

game.Players.PlayerAdded:connect(function(plr)
	plr.Chatted:connect(function(msg)
		local stringval = Instance.new("StringValue", chatstorage)
		if msg ~= "" then
		local filteredText = ""
		local success, message = pcall(function()
			filteredText = Chat:FilterStringForBroadcast(msg, plr)
			end)
		if success then
		stringval.Name = plr.Name..": "..filteredText
		end
		end
	end)
	end)

And now the thing that puts the text on the gui, is this. Which won't really matter since this just uploads the texts

cb1`= script.Parent.cb1
cb2 = script.Parent.cb2
cb3 = script.Parent.cb3
cb4 = script.Parent.cb4
cb5 = script.Parent.cb5
cb6 = script.Parent.cb6

game.Workspace.CStorage.ChildAdded:connect(function(chatstuff)
	cb1.Text = cb2.Text
	cb2.Text = cb3.Text
	cb3.Text = cb4.Text
	cb4.Text = cb5.Text
	cb5.Text = cb6.Text
	cb6.Text = chatstuff.Name
	wait(0.1)
end)

If I don't filter the text, it works fine. But I want the text filtered because roblox has to be so picky about it. Please help me.

2 comments

0

Why are you using folders to store the text as stringvalues? Suggest looking up RemoteEvents.

0

Because I can??.. I need help with the filter though..