So basically if i click the button it would show a GUI, but if i click again again on it, it should close the GUI.Ok it shows the GUI only once but if i click again it stays frozen.GUI won't do anything after that.
Here is the script:
local button = script.Parent
local frame = script.Parent.Parent.Frame
button.MouseButton1Click:Connect(function()
if frame.Visible == true then
frame.Visible = false
end
if frame.Visible == false then
frame.Visible = true
end
end)

2 comments
Is it a serverscript or localscript?
It is an local script