It works, but it doesn't display other player's chat. I'm not sure how to fix this, but it's a problem. Help?
local plr = game.Players.LocalPlayer
plr.Chatted:connect(function(msg)
local p = game.Players:GetChildren()
for j = 1, #p do
local frame = p[j].PlayerGui.ChatGui.Chat
local chat = Instance.new("TextLabel", frame)
local l = frame:GetChildren()
for i = 1, #l do
if l[i].ClassName == "TextLabel" then
l[i].Position = l[i].Position-UDim2.new(0,0,0,25)
end
end
chat.Position = UDim2.new(0,0,1,-25)
chat.Size = UDim2.new(1,0,0,25)
chat.BackgroundTransparency = 1
chat.TextStrokeTransparency = 0.3
chat.TextColor3 = Color3.new(1,1,1)
chat.TextScaled = false
chat.Font = "SourceSansBold"
chat.FontSize = "Size24"
chat.Text = "["..plr.Name.."]: "..msg..""
chat.TextXAlignment = "Left"
chat.TextWrapped = true
chat.TextScaled = true
end
end)

3 comments
Is filtering enabled on?
yes
You shouldn't handle your chat in a local script as the player is sending their chat to the server and it's much easier to use a server script for this type of thing, especially when using FilteringEnabled. See here for a better example: http://wiki.roblox.com/index.php?title=How_to_Make_a_Pseudo_Chat_GUI