script.Parent.MouseButton1Click:Connect(function()
if script.Parent.Parent.MainFrame.Visible == true then
script.Parent.Parent.MainFrame.Visible = false
else
script.Parent.Parent.MainFrame.Visible = true
end
end)
If this Helps, please accept answer. thanks :)
What exactly is supposed to be in the Frame? Are you sure it has contents and isn’t transparent? Is it’s .Position on screen? Is it’s .Size large enough to be seen?
You could use a local on/off to indicate whether or not it’s on, for example.
local btn = script.Parent
local btn2 = (DIRECTORY.HERE)
local frame = (DIRECTORY.HERE)
btn.MouseButton1Click:Connect(function()
if open == false then
Frame.Visible = true
open = true
else
if open == true then
Frame.Visible = false
open = false
else
end
btn2.(DIRECTORY.HERE).MouseButton1Click:Connect(function()
open = false
Frame.Visible = false
end)
end
end)
Or just make a script that makes one gui open and close.