Learn
Engine Class
Dialog


API Reference
Properties
BehaviorType
Read Parallel
Capabilities: UI
Dialog.BehaviorType:Enum.DialogBehaviorType
Code Samples
Behavior Type
local Workspace = game:GetService("Workspace")
local singlePlayerPartSetup = Instance.new("Part")
singlePlayerPartSetup.Name = "SinglePlayerPart"
singlePlayerPartSetup.Parent = Workspace
local multiplePlayersPartSetup = Instance.new("Part")
multiplePlayersPartSetup.Name = "MultiplePlayersPart"
multiplePlayersPartSetup.Parent = Workspace
local singlePlayerDialog = Instance.new("Dialog")
local singlePlayerPart = Workspace.SinglePlayerPart
singlePlayerDialog.BehaviorType = Enum.DialogBehaviorType.SinglePlayer
singlePlayerDialog.InitialPrompt = "Only one person can interact with me at once."
singlePlayerDialog.Parent = singlePlayerPart
local multiplePlayersDialog = Instance.new("Dialog")
local multiplePlayersPart = Workspace.MultiplePlayersPart
multiplePlayersDialog.BehaviorType = Enum.DialogBehaviorType.MultiplePlayers
multiplePlayersDialog.InitialPrompt = "Any number of players can interact with me at once."
multiplePlayersDialog.Parent = multiplePlayersPart

ConversationDistance
Read Parallel
Capabilities: UI
Dialog.ConversationDistance:number

GoodbyeChoiceActive
Read Parallel
Capabilities: UI
Dialog.GoodbyeChoiceActive:boolean

GoodbyeDialog
Read Parallel
Capabilities: UI
Dialog.GoodbyeDialog:string

InitialPrompt
Read Parallel
Capabilities: UI
Dialog.InitialPrompt:string

InUse
Read Parallel
Capabilities: UI
Dialog.InUse:boolean

Purpose
Read Parallel
Capabilities: UI
Dialog.Purpose:Enum.DialogPurpose

Tone
Read Parallel
Capabilities: UI
Dialog.Tone:Enum.DialogTone

TriggerDistance
Read Parallel
Capabilities: UI
Dialog.TriggerDistance:number

TriggerOffset
Read Parallel
Capabilities: UI
Dialog.TriggerOffset:Vector3

Methods
GetCurrentPlayers
Capabilities: UI
Dialog:GetCurrentPlayers():Instances
Returns
Instances
Code Samples
Dialog:GetCurrentPlayers
local dialog = script.Parent
local function onChoiceSelected(_player, _choice)
local currentPlayers = dialog:GetCurrentPlayers()
print("The current players in the dialog:")
for _, player in ipairs(currentPlayers) do
print(player)
end
end
dialog.DialogChoiceSelected:Connect(onChoiceSelected)

Events
DialogChoiceSelected
Capabilities: UI
Dialog.DialogChoiceSelected(
player:Instance, dialogChoice:Instance
Parameters
player:Instance
dialogChoice:Instance

©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.