Chat (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator
No edit summary
>ArceusInator
unlocked
Line 5: Line 5:
|returns              = [[nil]]
|returns              = [[nil]]
|description          = Makes the ''head'' say ''message'' in the ''ChatColor'' tone.
|description          = Makes the ''head'' say ''message'' in the ''ChatColor'' tone.
|object              = Chat
|object              = Chat}}</onlyinclude>
|protected            = Yes
}}</onlyinclude>
{{clear floats}}
{{clear floats}}
[[Category:Methods]]
[[Category:Methods]]

Revision as of 15:32, 7 April 2011

Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
Chat( Instance head, String message, ChatColor ChatColor )
Returns nil
Description: Makes the head say message in the ChatColor tone.
Member of: Chat
Example
If using the Command Bar or a CoreScript...
game:GetService( "Chat" ):Chat( Workspace.Player.Head, "This is a chat!", Enum.ChatColor.Blue )

-- makes Player's Head chat "This is a chat!" in the neutral tone
If using a Script or LocalScript...
game:GetService( "Chat" ):Chat( Workspace.Player.Head, "This is a chat!", Enum.ChatColor.Blue )

--> s Chat