Chatted (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy Fixed |
>Merlin11188 No edit summary |
||
(18 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{:Chatted (Event)/player}} | {{:Chatted (Event)/player}} | ||
{{:Chatted (Event)/chat}} | {{:Chatted (Event)/chat}} | ||
{{clear floats}} | {{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> | <pre> | ||
Game.Players.PlayerAdded:connect(function(player) | |||
player.Chatted:connect(function(msg) | |||
if msg == "reset" then | |||
player.Character:BreakJoints() | |||
end | |||
end) | |||
end) | end) | ||
</pre> | </pre> | ||
[[Category:Events]] | [[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)