Chat (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Quenty
Added info. It's good to be back.
>JulienDethurens
If you don't put a nil argument, it is assumed by the template.
Line 2: Line 2:
|name                = Chat
|name                = Chat
|arguments            = [[BasePart]] ''part'', [[String]] ''message'', [[ChatColor]] ''ChatColor''
|arguments            = [[BasePart]] ''part'', [[String]] ''message'', [[ChatColor]] ''ChatColor''
|returns              = [[nil]]
|description          = Makes the ''part'' have a [[Dialog]] containing ''message'' in the ''[[ChatColor]]'' tone.
|description          = Makes the ''part'' have a [[Dialog]] containing ''message'' in the ''[[ChatColor]]'' tone.
|object              = Chat
|object              = Chat

Revision as of 05:16, 30 January 2012

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. First previewed in Welcome to ROBLOX Building, this can be used in cases of custom dialog.
game:GetService("Chat"):Chat(game.Workspace.Player.Head, "This is a chat!", Enum.ChatColor.Blue)