Please help me.

script.Parent.DialogChoiceSelected:connect(function(player,dialog)
	local gui = script.Parent.Shop -- Change Shop To The Name Of The Gui.
	if dialog.Name=="DialogChoice" then -- Change The Choice1 To The Name Of The Dialog Choice.
		gui:Clone().Parent = player.PlayerGui
	end
end)

I made a dialog shop that you press a question mark above a bots head and it opens up with questions, you press yes and it opens a GUI. My problem is the GUI will not open when I press Yes