It is an event fired when a player talks, here's an example of it.
1 | game.Players.PlayerAdded:connect( function (player) |
2 | player.Chatted:connect( function (msg) |
3 | print (msg) --Prints the message the player chatted |
4 | end ) |
5 | end ) |
http://wiki.roblox.com/index.php?title=Chatted_(Event)
Here`s an example:
1 | message = "Hi" |
2 | game.Players.PlayerAdded:connect( function (msg) |
3 | if msg = = message then |
4 | print (message) |
5 | end |
6 | end ) |