Like when people click to open a gui how do I make like a textbutton to close the gui so it doesn't have to stay open and stay on the screen forever.
Put this is StarterGui
local gui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui) local button = Instance.New("TextButton",gui) local frame = Instance.new("Frame", gui) button.Size = UDim2.new(0,50,0,20) button.Text = "Open" frame.Size = UDim2.new(.5,0,.5,0) frame.Position = UDim2.new(.25,0,.25,0) frame.Visible = false button.MouseButton1Down:connect(function() if frame.Visible == false then frame.Visible = true else frame.Visible = false end)
It doesn't look very fancy but It is what you asked for.
Also next time please give an example script.
Scripting helpers isn't a request site but here are a few things that will hopefully set you looking in the right direction.
You're gui should have a frame in it. Frames have a property called visible.
One way to do this is to set that property to false.
A better way to do this is to use the tween method and tween the gui off the screen.
For more information on Tween click here.