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

can DialogChoiceSelected animate the model that has the Dialog?

Hi, I'm trying to make it so that when the Dialog is clicked, the model that has the Dialog(a humanoid model) will play an animation. But, I always get the error message "DialogChoiceSelected is not a valid member of DialogChoice". If anyone could maybe point me in a right direction, that;d be Really appreciated.

script.Parent.DialogChoiceSelected:connect(function(Animate)
	if (Animate == script.Parent.DialogStart) then
		game.Workspace.God.Humanoid:LoadAnimation(script.Animation)
	end
end)

1 answer

Instead of your line reading (Animate == script.Parent.DialogStart), it is best to use a MouseButton1Click code for the DialogChoice, so the game knows that when the DialogChoice is clicked once, it will load and do the animation.

1 comment

0

And do you know how to make a shop and spectate button/GUI? Extremely difficult to create and especially test, especially when I'm the only person technically "playing" the game.

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