The local script in StarterPlayerScripts and FilteringEnabled is on.
Part of local script:
network:add("chatted",function(chatter,text,tag,teamchat)
if teamchat and chatter.TeamColor~=player.TeamColor then return end
local mes=msg:Clone()
local mtag=mes:WaitForChild("Tag")
local offset=5
mes.Parent=globalchat
mtag.Text=tag
if tag~="" then
offset=mtag.TextBounds.x+5
mes.Position=ud2(0.01,offset,1,20)
mtag.Position=ud2(0,-offset+1,0,0)
end
mes.Text=chatter.Name..": "
mes.TextColor=chatter.TeamColor
mes.Msg.Text=text
mes.Msg.Position=ud2(0,mes.TextBounds.x,0,0)
end)
Output: "attempt to index local 'mes' (a nil value)"
Error line is 04: 'local mtag=mes:WaitForChild("Tag")'
It's not working. Why?

1 comment
how did you solve this?