Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What Dialog Property Can I Use To Toggle It?

Asked by 7 years ago

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)
0
Make your own bool value that controls it connor12260311 383 — 7y
0
Oh. nvm connor12260311 383 — 7y
0
There isn't one, you can make your own dialog though. connor12260311 383 — 7y

Answer this question