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

How do i fix my gui click button reply system? [ANSWERED]

Asked by
Tnipo 10
4 years ago
Edited 4 years ago

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?

0
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. Ziffixture 6913 — 4y
0
Thank you, this solved my problem. Tnipo 10 — 4y

Answer this question