How to make a GUI disappear when a button is clicked

Create a local script inside the button.

local player = game.Players.LocalPlayer
local button = script.Parent

button.MouseButton1Clicked:Connect(function()
-- turn the visible off of all the guis u want or get the GUI and disable it 
end)
2 Likes