of     1   

CaptainSource
#140972834Sunday, July 20, 2014 7:25 PM GMT

so basicly i did this there is no error and i dont understand why its not working Moderators = {"CaptainSource"} for _=1, #Moderators do game.Players:WaitForChild(Moderators[_]).Chatted:connect(function(message) progressCommand(Moderators[_], message) function progressCommand(speaker, message) if message == "lol" then print(speaker.Name) end end end) end
Jetta765214
#140973702Sunday, July 20, 2014 7:35 PM GMT

2 easy errors in it: WaitForChild() won't let anything after it run until the child is found. the function is created after it's called. I'd suggest doing something like this: Moderators = {"CaptainSource"} function progressCommand(player,message) if message == "lol" then print(speaker.Name) end end game.Players.PlayerAdded:connect(function(player) for i,v in pairs(Moderators) do if v == player.Name then player.Chatted:connect(function(message) progressCommand(player,message) end) end end end) Alt. of Jetta765214
CaptainSource
#140973887Sunday, July 20, 2014 7:37 PM GMT

Gives cookie thank you sir.

    of     1