Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

Explanation of .Chatted please?

Asked by 10 years ago

What does .Chatted mean?

3 answers

Log in to vote
3
Answered by 10 years ago

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)

http://wiki.roblox.com/index.php?title=Chatted_(Event)

Ad
Log in to vote
0
Answered by 10 years ago

When a player chats, this event activates.

Log in to vote
-5
Answered by 10 years ago

Here`s an example:

message="Hi"
game.Players.PlayerAdded:connect(function(msg)
    if msg==message then
        print(message)
    end
end)

Answer this question