I am trying to make a game that when I click a part i can interact with it. My script works the first time but when I close it and click the part again, it doesn't appear. And of course I already have a ClickDetector inside the Part. I would love if you can help me, thank you.
The script inside the Part:
script.Parent.ClickDetector.MouseClick:Connect(function(click)
click.PlayerGui.Talk.TextLabel.Visible = true
click.PlayerGui.Talk.TextLabel.Text = tostring(script.Parent.dialogs.dialog1.Value)
end)
the script in the close button:
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
end)
