Engine Class
Dialog
Summary
Properties
Methods
GetCurrentPlayers():Instances |
Events
DialogChoiceSelected(player: Instance,dialogChoice: Instance):RBXScriptSignal |
API Reference
Properties
Methods
GetCurrentPlayers
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