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.

1game.Players.PlayerAdded:connect(function(player)
2    player.Chatted:connect(function(msg)
3        print(msg) --Prints the message the player chatted
4    end)
5end)

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:

1message="Hi"
2game.Players.PlayerAdded:connect(function(msg)
3    if msg==message then
4        print(message)
5    end
6end)

Answer this question