game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
print "Chatted"
end)
end)
I copied this from the wiki but the chatted event never fires.
Any ideas?
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
print "Chatted"
end)
end)
I copied this from the wiki but the chatted event never fires.
Any ideas?
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
Did you make sure to tell the script what "player" is?
@MastaJames I doubt that matters, since 'player' is the argument of the PlayerAdded event.
OK, Alxeyx, make sure that this script is in a server-sided script and that it resides in either game.Workspace or game.ServerScriptService.