#Introduction I have a script in which when the player clicks on the item, a GUI appears. But once they click "Done" and the GUI disappears, when the player clicks the item again, it doesn't come back. Here is my script:
script.Parent.MouseClick:connect(function(player)
if not player.PlayerGui:findFirstChild("NPCDialog") then
local newgui = workspace.MainGameScript.NPCDialog:clone()
newgui.Parent = player.PlayerGui
local newdialog = script.Parent.Dialog:clone()
newdialog.Parent = newgui.ControlDialog
newgui.ControlDialog.Disabled = false
wait()
Instance.new("BoolValue",newgui).Name = "Ready"
end
end)
#Conclusion Can somebody help me?
