I created a GUI,but i want it to be removed after I click it,i put this under the frame gui.MouseButton1Click:connect(function() print("Button1 click.") end)
Do you know what I can add in order to make it disappear but re-appear after resetting?
Assuming reseting means character dying, add this. Make sure it's in StarterGUI, though.
gui:Destroy() --make gui the path you need.
Make sure there is a Text Button in the Frame and put the script in the TextButton
gui = script.Parent.Parent.Parent script.Parent.MouseButton1Click:connect(function() print("Button1 click.") gui:Destroy() end)
Destroy
Removes it