เรียนรู้
Engine Class
Dialog

*เนื้อหานี้แปลโดยใช้ AI (เวอร์ชัน Beta) และอาจมีข้อผิดพลาด หากต้องการดูหน้านี้เป็นภาษาอังกฤษ ให้คลิกที่นี่


สรุป
วิธีการ
GetCurrentPlayers():Instances
เหตุการณ์
สมาชิกที่ได้รับทอด

เอกสารอ้างอิงเกี่ยวกับ API
คุณสมบัติ
BehaviorType
อ่านพร้อมๆ กัน
ความสามารถ: UI
Dialog.BehaviorType:Enum.DialogBehaviorType

ConversationDistance
อ่านพร้อมๆ กัน
ความสามารถ: UI
Dialog.ConversationDistance:number

GoodbyeChoiceActive
อ่านพร้อมๆ กัน
ความสามารถ: UI
Dialog.GoodbyeChoiceActive:boolean

GoodbyeDialog
อ่านพร้อมๆ กัน
ความสามารถ: UI
Dialog.GoodbyeDialog:string

InitialPrompt
อ่านพร้อมๆ กัน
ความสามารถ: UI
Dialog.InitialPrompt:string

InUse
อ่านพร้อมๆ กัน
ความสามารถ: UI
Dialog.InUse:boolean

Purpose
อ่านพร้อมๆ กัน
ความสามารถ: UI
Dialog.Purpose:Enum.DialogPurpose

Tone
อ่านพร้อมๆ กัน
ความสามารถ: UI
Dialog.Tone:Enum.DialogTone

TriggerDistance
อ่านพร้อมๆ กัน
ความสามารถ: UI
Dialog.TriggerDistance:number

TriggerOffset
อ่านพร้อมๆ กัน
ความสามารถ: UI
Dialog.TriggerOffset:Vector3

วิธีการ
GetCurrentPlayers
ความสามารถ: UI
Dialog:GetCurrentPlayers():Instances
ส่งค่ากลับ
Instances
ตัวอย่างโค้ด
กล่องสนทนา:GetCurrentPlayers
local dialog = script.Parent
local function onChoiceSelected(_player, _choice)
local currentPlayers = dialog:GetCurrentPlayers()
print("ผู้เล่นปัจจุบันในกล่องสนทนา:")
for _, player in ipairs(currentPlayers) do
print(player)
end
end
dialog.DialogChoiceSelected:Connect(onChoiceSelected)

เหตุการณ์
DialogChoiceSelected
ความสามารถ: UI
Dialog.DialogChoiceSelected(
player:Instance, dialogChoice:Instance
พารามิเตอร์
player:Instance
dialogChoice:Instance

©2026 Roblox Corporation. Roblox, โลโก้ Roblox และ Powering Imagination เป็นส่วนหนึ่งของเครื่องหมายการค้าที่จดทะเบียน และไม่ได้จดทะเบียนของเราในสหรัฐฯ และประเทศอื่นๆ