Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

DialogChoiceSelected not firing?

Asked by 7 years ago

First off, I don't event think that the DialogChoiceSelected function even fires at all! It is in a ServerScript, and fires the client with the given player in the function's parameter. It works in test mode, without a server. But when I test with a server or play the game, the function seems to not even do anything. Any advice?

local dialog = script.Parent.Parent
local FGE = script.Parent.FireGuiEvent

dialog.DialogChoiceSelected:connect(function(plr,choice)
    print("the event thing fired, though.")
    if choice.Name == "BuyChoice" then
    FGE:FireClient(plr)
    print("I fired the dialog event, for the server")
    else
    FGE:FireClient(plr)
    print("I fired the dialog event, for the server, and btw, it wassn't buychoise?")
    end
end)
0
Hi, this is my first time being on this website (yes i really did make an account just for this) and I've been having the same issue. For some reason, the DialogChoiceSelected event never fires, no matter what I try. Does anyone know why this happens or...? Spiral_Flames 0 — 3y

Answer this question