Chat (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>SCARFACIAL
No edit summary
Adding categories
 
(24 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>{{Method
There are two Chat methods:
|name                = Chat
|arguments            = [[Instance]] ''head'', [[String]] ''message'', [[ChatColor]] ''ChatColor''
|returns              = [[nil]]
|description          = Makes the ''head'' say ''message'' in the ''[[ChatColor]]'' tone.
|object              = Chat}}</onlyinclude>
{{clear floats}}
[[Category:Methods]]
{{Example|
<pre>
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</pre>
}}
 
== See Also ==
*[[BubbleChat|BubbleChat]]
*[[ClassicChat|ClassicChat]]
*[[SetChatStyle_%28Method%29|Set chat style]]
*[[TeamChat|TeamChat]]


{{:Chat (Method)/Chat}}
<div class="visualClear"></div>
{{:Chat (Method)/Players}}
[[Category:Methods]]
[[Category:Methods]]

Latest revision as of 22:32, 17 April 2023

There are two Chat methods:

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
Chat( string message )
Returns nil
Description: Makes the local player chat the message message.
Member of: Players