Answered by
6 years ago Edited 6 years ago
It's lucky for you that Roblox have already made a function for that ready to serve.
Here is how to use it for a certain player.
1 | local plr = [ Insert player here ] |
2 | plr.Chatted:connect( function (message) |
3 | print (plr.Name.. ' just said: ' ..message) |
If you want to use it for a crowd. Just add PlayerAdded function (which also already been made).
1 | game.Players.PlayerAdded:connect( function (plr) |
2 | plr.Chatted:connect( function (message) |
3 | print (plr.Name.. ' just said: ' ..message) |
Read this wiki for more information: https://wiki.roblox.com/index.php?title=API:Class/Player/Chatted