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?

3 comments

0

Did you make sure to tell the script what "player" is?

0

@MastaJames I doubt that matters, since 'player' is the argument of the PlayerAdded event.

0

OK, Alxeyx, make sure that this script is in a server-sided script and that it resides in either game.Workspace or game.ServerScriptService.