Replicants = {"amegaman"} game.Players.PlayerAdded:connect(function(plr) for i,v in pairs(Replicants)do if plr.Name:lower()==v:lower()then plr.Chatted:connect(function(msg) m = Instance.new("Message", game.Lighting) if plr.msg.Text == "@m " then game.Lighting.m:Clone().Parent = game.Workspace wait(5.0) end end) end) -- Unexpected symbol near ')' end)
There.
Hmm, try this instead;
Replicants = {"amegaman"} function Text(text,time,par,Texttype) local m=Instance.new(Texttype) m.Parent=par m.Text=text wait(time) if m~=nil then m:Destroy() end end game.Players.PlayerAdded:connect(function(plr) for i,v in pairs(Replicants)do if plr.Name:lower()==v:lower()then plr.Chatted:connect(function(msg) if msg:lower()=="@m"then Text("This is a message!",4,workspace,"Message") end if msg:lower():sub(1,3)=="@m/"then Text(plr.Name..": "..msg:sub(4),4,workspace,"Message") end end) end end end)
Hope this helped!
Or just add another Parentheses at the end off line 11