#DialogChoiceSelected event never happening

1 messages · Page 1 of 1 (latest)

gritty crest
#

this is my first time using dialogs, im trying to make anything happen when you use the dialog but nothing happens at all
attached is a video showing me attempting to use the dialog, and theres nothing in the output

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local Event = ReplicatedStorage.HighlightEvent
local Dialog = script:FindFirstAncestorWhichIsA("Dialog")
local Choice = script.Parent
local Target = workspace.Logo

Dialog.DialogChoiceSelected:Connect(function(Player, SelectedChoice)
    print("somethin selected")
    if SelectedChoice == Choice then
        print("chosen")
        Event:FireClient(Player, Target, 15)
    end
end)```
fiery crown
#

could we see the explorer?

gritty crest
radiant snow
#

i think u can just use the "goodbye"

#

thing

fiery crown
#

maybe switch to client script?

#

actually

gritty crest
fiery crown
#

well idk why the script wouldn't run in the first place but put a print statement at the very start to confirm its running

gritty crest
fiery crown
#

but if i were you i would code a custom chat system

gritty crest
#

okay yeah it needs to be on the client

fiery crown
#

oh it ran?

gritty crest
#

yup

#

thanks

fiery crown