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 = [[ | |arguments = [[BasePart]] ''part'', [[String]] ''message'', [[ChatColor]] ''ChatColor'' | ||
|returns = [[nil]] | |returns = [[nil]] | ||
|description = Makes the '' | |description = Makes the ''part'' have a [[Dialog]] containing ''message'' in the ''[[ChatColor]]'' tone. | ||
|object = Chat}}</onlyinclude> | |object = Chat | ||
}}</onlyinclude> | |||
{{clear floats}} | {{clear floats}} | ||
{{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>}} | |||
}} | |||
[[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)