Exactly what the title says. DialogChoiceSelected seems to never run, even in a local script. I’ve also tried disabling FilteringEnabled among other things and I can’t seem to get it to work?
My code:
script.Parent.Dialog.DialogChoiceSelected:Connect(function(plr, choice)
print(plr.Name); print(choice.Name)
if choice.Name == "Shop" then
if plr.PlayerGui:FindFirstChild("CrystalShop") ~= nil then
plr.PlayerGui:FindFirstChild("CrystalShop").Enabled = true
end
end
end)
It’s supposed to open a player GUI, but nothing happens. Nothing prints either.
I think it’s cause since Dialogs in Studio are extremely old, some functions are bound to not work anymore in regards to more modern stuff so you may need to resort on using just making your own Custom GUI’s instead?
Is this a serverscript because DialogChoiceSelected doesn’t fire on server. If this is a localscript and this localscript is a descendant of workspace and not a descendant of a character model at the same time then it won’t work because it won’t run in the first place.
So it is a descendant of workspace then. There is your error, localscripts don’t run inside workspace unless they are descendant of a player character model at the same time.
The FilteringEnabled property doesn’t have any effects right now except for showing a modal on the website that the game is potentially outdated as games before the setting were added will still have it off and may not be compatible with the current client-server model. You can’t turn it off.