Chatted (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator changed to a redirect |
>Merlin11188 No edit summary |
||
(15 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{: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]] |
Latest revision as of 23:00, 18 July 2011
![]() | |
Description | Fired when the owning player types a chat in chat bar or selects a phrase in safe chat menu. |
---|---|
Member of: | Player |
![]() | |
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)