What does .Chatted mean?
✓ ANSWER ACCEPTED
Explanation of .Chatted please?
3 answers
✓ Accepted answer
It is an event fired when a player talks, here's an example of it.
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
print(msg) --Prints the message the player chatted
end)
end)
When a player chats, this event activates.
Here`s an example:
message="Hi"
game.Players.PlayerAdded:connect(function(msg)
if msg==message then
print(message)
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
