So i made a part with a click detector and a gui when i click the part the gui comes up with a text label and 2 text buttons for replies and the script inside those is
script.Parent.MouseButton1Click:Connect(function()
game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Visible = false
end)
How would i make it delete the other one instead of making it go invisible so both buttons will work over and over again?

2 comments
If you wish to permanently remove an object, call :Destroy() on the Instance. If you wish to use it again but remove it, set the parent to nil and redeclare it when ready for use.
Thank you, this solved my problem.