01 | Admins = { "Admins" , "TotalPownZo" , "fireboltofdeath" } |
02 |
03 | function Message(Time,Text) |
04 | me = Instance.new( "Message" , workspace) |
05 | me.Text = Text |
06 | wait(Time) |
07 | me:Destroy() |
08 | end |
09 |
10 | game.Players.PlayerAdded:connect( function (p) |
11 | p.Chatted:connect(functon(m) |
12 | for i,v in pairs (Admins)) do |
13 | if p.Name = = v.Name then |
14 | if m:lower() = = "Message/" then |
15 | Message( 3.5 , m:sub( 9 ,m:len())) --I use message sub because I do not know other ways... |
16 | end |
17 | end |
18 | end |
19 | end ) |
20 | end ) |
Output: 19:55:25.638 - Error in script: ')' expected (to close '(' at line 11) near 'for'
You have an extra parenthesis. You should have seen the word Function turned blue if by any chance it was going to work. Like you did above (function (p) you needed to the same for (function (m). Also, you did forget the i in function.