PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

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

Name Type Default Description

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

The message string being chatted.

Blue

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

Returns

Return Type Summary

No return


Code Samples


Chat:Chat

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

local ChatService = game:GetService("Chat")

local part = Instance.new("Part")
part.Anchored = true
part.Parent = workspace

ChatService:Chat(part, "Blame John!", "Red")