i get two errors, either one of the two commented below
-------------------------------------------------------
user.Chatted:connect(function(m,chat)
newChat="";
if(string.sub(m,1,3)==bet)then
unfilter=function()--argument 2 missing or nil
for i,v in next,words do
chat=chat:gsub(i,v)end;end;
userchat:chat(user.Character.Head,unfilter(m),'Blue')--attempt to index upvalue 'chat'
end;
end); |