Start a quest on dialog

Inside of my Roblox game I want to have a side quest where you have to find someone’s rocks for their rock collection, I want it where when you press a specific response the rocks appear and a counter shows up, I don’t know where to even start for something like this.

Dialogs perhaps.

1 Like

I tried using that but I got the error: “Dialog is not a valid member of Workspace ‘Workspace’”, I based the code off this:

workspace.Dialog.DialogChoiceSelected:connect(function(player,choice)
	print(player.Name,choice.Name)
end)

I realized why the error appeared, I was using a normal script instead of a local script, but the code still doesn’t work, here’s the code:

workspace.Dialog.DialogChoiceSelected:connect(function(player,choice)
	if choice.Name == "I will help find the rocks for you!" then
		print("It works!")
	end
end)