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

how would I filter this chat, i have no idea how I would filter this.. Any help?

local Chats = game:GetService("ReplicatedStorage").Chats
local player = script.Parent.Parent.Parent
local LocalChats = {}

function addMessage(value)
	local newMessage = script.Parent.ChatExample:clone()
	newMessage.Text = value
	newMessage.Visible = true
	for i, obj in pairs(script.Parent.Chats:GetChildren()) do
		obj.Position = obj.Position + UDim2.new(0, 0, 0, 16)
	end
	newMessage.Parent = script.Parent.Chats
	table.insert(LocalChats, newMessage)
	if #LocalChats > 30 then
		LocalChats[1]:Destroy()
		table.remove(LocalChats, 1)
	end
end

Chats.DescendantAdded:connect(function(d) addMessage(d.Name) end)

Now what should I do to filter " value "

1 answer

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