Hello everyone, I'm trying to make a npc shop but nothing's happening.

script.Parent.Shop.DialogChoiceSelected:connect(function(plr,dialog)
	if dialog.Name == script.Parent.Shop.ShopDialog1 then
		print("1")
	end
end)

Can you help me, please ?