Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
3

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

Asked by 7 years ago
01local Chats = game:GetService("ReplicatedStorage").Chats
02local player = script.Parent.Parent.Parent
03local LocalChats = {}
04 
05function 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 + UDim2.new(0, 0, 0, 16)
11    end
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)
17    end
18end
19 
20Chats.DescendantAdded:connect(function(d) addMessage(d.Name) end)

Now what should I do to filter " value "

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

Wiki article

2
dude I have seen that but this is a custom chat greatneil80 2647 — 7y
1
You can use this on a custom chat... Void_Frost 571 — 7y
Ad

Answer this question