So I have a dialog with a NPC. So what property can I use to toggle the dialog making it possibly enabled or un-enabled? Here is a script below that I want to add after a wait(), the dialog becomes enabled, how would I do that?

leave = game.Workspace.leave

workspace.NPC1.Head.Dialog.DialogChoiceSelected:connect(function(player,choice)
	if choice.Name == "Choice1" then
		player.Character.Humanoid.Health = 100
	elseif choice.Name == "Choice2" then
		script.Parent:Destroy()
		wait(1)
		script.Parent.Parent.Parent.Humanoid.WalkToPoint = game.Workspace.leave.Position
	end
end)

3 comments

0

Make your own bool value that controls it

0

Oh. nvm

0

There isn't one, you can make your own dialog though.