Chat:Chat

()

The Chat function fires the Chat.Chatted event with the parameters specified in this method.

By default, there is a LocalScript inside of each player's PlayerScripts object named BubbleChat, which causes a dialog-like billboard to appear above the partOrCharacter when the chatted event is fired.

Note: Since dialogs are controlled by a LocalScript, you will not be able to see any dialogs created from this method unless you are running in Play Solo mode.

Parameters

partOrCharacter: Instance

An instance that is the part or character which the BubbleChat dialog should appear above.

Default Value: ""
message: string

The message string being chatted.

Default Value: ""

An Enum.ChatColor specifying the color of the chatted message.

Default Value: "Blue"

Returns

()

Code Samples

The below example would create a part in Workspace and cause it to exclaim "Blame John!"

Chat:Chat

local ChatService = game:GetService("Chat")
local part = Instance.new("Part")
part.Anchored = true
part.Parent = workspace
ChatService:Chat(part, "Blame John!", "Red")