I have a function that uses the .Chatted event, and it wasn’t working, so I put this simple code at the top of a new script
game.Players.PlayerAdded:Connect(function(Player)
print(Player.Name .. " just joined.")
Player.Chatted:Connect(function(Message)
print(Player.Name, Message)
end)
end)
and the “just joined” part prints, but the chatted part doesn’t work – anyone know what’s going on?
(also I tested this in studio and in-game: the same thing happens)
BenSBk
(Ben)
#2
Are you listening for this event on the server or client?
1 Like
The server. It’s just a script in ServerScriptService.
BenSBk
(Ben)
#4
That’s odd—the code works fine for me. Could you do the same thing in a new place and tell me if it works?
1 Like
Yeah… it works. That’s weird. I don’t have anything under ChatService in the first game. 
BenSBk
(Ben)
#6
Are you using a custom chat system? Are you doing anything with the chat whatsoever?
1 Like
Nope, that’s why I’m confused.
BenSBk
(Ben)
#8
Could I receive the place file to have a look myself?
1 Like
omg I had ‘LoadDefaultChat’ disabled. I don’t know when/why I did that, but that fixed it lol
2 Likes