Chatted (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mindraker
No edit summary
>Merlin11188
No edit summary
 
(47 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{CatUp|Events}}
{{:Chatted (Event)/player}}
{{:Chatted (Event)/chat}}
{{clear floats}}
 
== Usage ==
Please note that the recipient value is always nil. This is an example of connecting the chatted event to all incoming players.
<pre>
Game.Players.PlayerAdded:connect(function(player)
  player.Chatted:connect(function(msg)
    if msg == "reset" then
      player.Character:BreakJoints()
    end
  end)
end)
</pre>




[[Category:Events]]
[[Category:Events]]

Latest revision as of 23:00, 18 July 2011

Chatted ( String message, Instance recipient )
Description Fired when the owning player types a chat in chat bar or selects a phrase in safe chat menu.
Member of: Player
Chatted ( Instance head, String message, ChatColor chatColor )
Description Fired when Chat Method is used.
Member of: Chat


Usage

Please note that the recipient value is always nil. This is an example of connecting the chatted event to all incoming players.

Game.Players.PlayerAdded:connect(function(player)
  player.Chatted:connect(function(msg)
    if msg == "reset" then
      player.Character:BreakJoints()
    end
  end)
end)