Ad
Log in to vote
0

Disable Dialog on Selection?

Asked by
Leb747 0
7 years ago

I'm trying to create a NPC with a dialog that disappears for a while if you select an dialog choice. Could I have to help on how to make a dialog be disabled for a temporary time (If Possible)?

1 answer

Log in to vote
0
Answered by 7 years ago
function talk(player,dialog) 
if dialog.Name == "Disable" then
Dialoger = game.Workspace:FindFirstChild("") --Put the name of the Thing where the Dialog is in. Try FakeHead or something because If there are multiple heads or somthing, It wont work.
script.Parent.Parent = game.ServerStorage
wait(5)
script.Parent = Dialoger
end 
end 

script.Parent.DialogChoiceSelected:connect(talk)
Ad

Answer this question