|
| 14 Jun 2012 07:38 PM |
game.Players.PlayerAdded:connect(function(newPlayer) print(newPlayer) newPlayer.Chatted:connect(function(message, speaker) print(message, recipient) end) end)
The message part works, but the recipient is always nil. Everything I've tried isn't working. |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2012 07:42 PM |
game.Players.PlayerAdded:connect(function(newPlayer) print(newPlayer) newPlayer.Chatted:connect(function(message, speaker) print(message, speaker) end) end)
...?
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2012 07:47 PM |
| It still prints nil. Didn't realize I had recicpeint instead of speaker. I was testing it earlier with message, recipient, speaker. But they both return nil. |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 14 Jun 2012 07:48 PM |
Chatted doesn´t return a second value.
game.Players.PlayerAdded:connect(function(newPlayer) print(newPlayer) newPlayer.Chatted:connect(function(message) print(message, newPlayer) end) end)
|
|
|
| Report Abuse |
|
|
|
| 14 Jun 2012 07:51 PM |
Wow just reach the .Chatted event on the Wiki, and it says:
"Please note that the recipient value is always nil. This is an example of connecting the chatted event to all incoming players."
† KMXD † |
|
|
| Report Abuse |
|
|