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

Dialog

Show deprecated

Dialog

Show deprecated

The Dialog object allows users to create non-player characters (NPCs) that players can talk to using a list of choices. The Dialog object can be inserted into a part such as a Humanoid’s head, and then a player will see a speech bubble above the part that they can click on to start a conversation. The creator of a place can choose what choices the player can say by inserting DialogChoice objects into the dialog.

See Also:

Properties

DialogBehaviorType

BehaviorType

Sets whether the Dialog can be used by multiple players at once.

float

ConversationDistance

The furthest distance that I player can be from the Dialog’s parent to start a conversation.

bool

GoodbyeChoiceActive

Toggles whether the goodbye option will be displayed.

string

GoodbyeDialog

Sets the sentence that the dialog will show to the player when the chat ends

bool

InUse

If true, this dialog is being used by at least one player.

string

InitialPrompt

Sets the first sentence that the dialog will show to the player, once a chat is commenced.

DialogPurpose

Purpose

Sets the icon that the initial dialog displays.

DialogTone

Tone

Sets the color of the NPC’s speech bubble.

float

TriggerDistance

Sets the maximum distance that a dialog can be triggered from.

Vector3

TriggerOffset

Sets the offset of the dialog relative to the dialog’s parent.

Functions

Objects

GetCurrentPlayers ( )

Returns a list of players currently using the Dialog.

Events

RBXScriptSignal

DialogChoiceSelected ( Instance player , Instance dialogChoice )

Fired when a player chooses something to say, through a Dialog instance.