Chat (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens
If you don't put a nil argument, it is assumed by the template.
>JulienDethurens
No edit summary
Line 1: Line 1:
<onlyinclude>{{Method
<onlyinclude>{{Method
|name                = Chat
|name                = Chat
|arguments            = [[BasePart]] ''part'', [[String]] ''message'', [[ChatColor]] ''ChatColor''
|arguments            = {{type|instance=Instance}} <var>partOrCharacter</var>, {{type|string}} <var>message</var>, {{type|enum=ChatColor}} <var>color</var> = Blue
|description          = Makes the ''part'' have a [[Dialog]] containing ''message'' in the ''[[ChatColor]]'' tone.
|description          = Makes <var>partOrCharacter</var> have a dialog-like billboard containing <var>message</var> in the <var>color</var> tone.
|object              = Chat
|object              = Chat
}}</onlyinclude>
}}</onlyinclude>


{{clear floats}}
{{clear floats}}
{{Example|Creates a Dialog on the part with the message.  First previewed in Welcome to ROBLOX Building, this can be used in cases of custom dialog. 
<pre>
game:GetService("Chat"):Chat(game.Workspace.Player.Head, "This is a chat!", Enum.ChatColor.Blue)
</pre>}}


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

Revision as of 07:44, 25 February 2012

Chat( Instance partOrCharacter, string message, ChatColor color = Blue )
Returns nil
Description: Makes partOrCharacter have a dialog-like billboard containing message in the color tone.
Member of: Chat