Chat (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>SCARFACIAL
No edit summary
>Camoy
warning: never used this method, correct information if inaccurate
Line 1: Line 1:
<onlyinclude>{{Method
<onlyinclude>{{Method
|name                = Chat
|name                = Chat
|arguments            = [[Instance]] ''head'', [[String]] ''message'', [[ChatColor]] ''ChatColor''
|arguments            = [[BasePart]] ''part'', [[String]] ''message'', [[ChatColor]] ''ChatColor''
|returns              = [[nil]]
|returns              = [[nil]]
|description          = Makes the ''head'' say ''message'' in the ''[[ChatColor]]'' tone.
|description          = Makes the ''part'' have a [[Dialog]] containing ''message'' in the ''[[ChatColor]]'' tone.
|object              = Chat}}</onlyinclude>
|object              = Chat
}}</onlyinclude>
 
{{clear floats}}
{{clear floats}}
[[Category:Methods]]
 
{{Example|
{{Example|Creates a Dialog on the part with the message.
<pre>
<pre>
game:GetService( "Chat" ):Chat( Workspace.Player.Head, "This is a chat!", Enum.ChatColor.Blue )
game:GetService("Chat"):Chat(game.Workspace.Player.Head, "This is a chat!", Enum.ChatColor.Blue)
 
</pre>}}
-- makes Player's Head chat "This is a chat!" in the neutral tone</pre>
}}
 
== See Also ==
*[[BubbleChat|BubbleChat]]
*[[ClassicChat|ClassicChat]]
*[[SetChatStyle_%28Method%29|Set chat style]]
*[[TeamChat|TeamChat]]


[[Category:Methods]]
[[Category:Methods]]

Revision as of 13:34, 30 July 2011

Chat( BasePart part, String message, ChatColor ChatColor )
Returns nil
Description: Makes the part have a Dialog containing message in the ChatColor tone.
Member of: Chat


Example
Creates a Dialog on the part with the message.
game:GetService("Chat"):Chat(game.Workspace.Player.Head, "This is a chat!", Enum.ChatColor.Blue)