Ok so I made a dialog script but when I play the game it doesn’t work
local Dialog = script.Parent
Dialog.DialogChoiceSelected:Connect(function(Player, Choice)
if not Player then return end
if Choice == Dialog.A.B.C.D then
print("It works")
end
end)
Theres really not a lot to go off of here, but this line looks a bit suspect.
if Choice == Dialog.A.B.C.D then
try this instead
if Choice == Dialog.A or Choice == Dialog.B or Choice == Dialog.C or Choice == Dialog.D then
Assuming you are using roblox’s built in dialog system, without taking the time to research the properties and events, this is what looks like it is wrong.