how would I filter this chat, i have no idea how I would filter this.. Any help?
01 | local Chats = game:GetService( "ReplicatedStorage" ).Chats |
02 | local player = script.Parent.Parent.Parent |
05 | function addMessage(value) |
06 | local newMessage = script.Parent.ChatExample:clone() |
07 | newMessage.Text = value |
08 | newMessage.Visible = true |
09 | for i, obj in pairs (script.Parent.Chats:GetChildren()) do |
10 | obj.Position = obj.Position + UDim 2. new( 0 , 0 , 0 , 16 ) |
12 | newMessage.Parent = script.Parent.Chats |
13 | table.insert(LocalChats, newMessage) |
14 | if #LocalChats > 30 then |
15 | LocalChats [ 1 ] :Destroy() |
16 | table.remove(LocalChats, 1 ) |
20 | Chats.DescendantAdded:connect( function (d) addMessage(d.Name) end ) |
Now what should I do to filter " value "