Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why won't this dialog appear?

I was trying to do was, when a player clicks on a choice, a dialog will appear on another brick. it won't pop up on the required brick help?

local part = game.Workspace.Bricks

script.Parent.DialogChoiceSelected:connect(function(player, choice)
	if (choice == script.Parent["Choice1"] then
		local new = Instance.new('Dialog',part)
		new.InitialPrompt = 'Hello!'
	end
	if (choice == script.Parent["Choice2"] then
		local new = Instance.new('Dialog',part)
		new.InitialPrompt = 'Hola!'
end
	if (choice == script.Parent["Choice3"] then
		local new = Instance.new('Dialog',part)
		new.InitialPrompt = 'Hi!'

	end
	end)

1 answer

You don't NEED to use a script for this. I found this extra helpful ROBLOX wiki article for dialog. And, if you must use scripts for dialog, the article covers it as well. http://wiki.roblox.com/index.php?title=How_to_use_Dialog

2 comments

0

Yea, I read it and, I didn't find what I was looking for... And I think it needs a script for it anyways.

0

BTW, use a "local" in the first line. Also, try doing this for all the ifs: if (choice == script.Parent["Choice1"] then since you have a number in there

This discussion is preserved as it was. New answers, comments, and votes are closed.