Chat (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator
unlocked
>SCARFACIAL
Unlocked, removing the stuff that says it's proteted.
Line 1: Line 1:
<noinclude>{{Locked}}</noinclude>
<onlyinclude>{{Method
<onlyinclude>{{Method
|name                = Chat
|name                = Chat
Line 9: Line 8:
[[Category:Methods]]
[[Category:Methods]]
{{Example|
{{Example|
If using the [[Command Bar]] or a [[CoreScript]]...<pre>
<pre>
game:GetService( "Chat" ):Chat( Workspace.Player.Head, "This is a chat!", Enum.ChatColor.Blue )
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>
-- makes Player's Head chat "This is a chat!" in the neutral tone</pre>
If using a [[Script]] or [[LocalScript]]...<pre>
}}
game:GetService( "Chat" ):Chat( Workspace.Player.Head, "This is a chat!", Enum.ChatColor.Blue )
 
--> s Chat</pre>}}

Revision as of 20:06, 8 July 2011

Chat( Instance head, String message, ChatColor ChatColor )
Returns nil
Description: Makes the head say message in the ChatColor tone.
Member of: Chat
Example
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