I want to make a button that when you click it it makes a Gui that is in a separate ScreenGui visible. I tried doing using script.parent, but it said that the frame I wanted wasn't a valid member of PlayerGui. I tried doing Game.StarterGui, but that didn't work either. It didn't even give me an error.
Here is my attempts
--Script 1
local frame = game.StarterGui.SignUp.SignUpMainFrame
local open = false
script.Parent.MouseButton1Click:Connect(function()
if frame.Visible == false then
frame.Visible = true
end
end)
--Script 2
local frame = script.Parent.Parent.Parent.Parent.Parent.Parent.SignUp.SignUpMainFrame
local open = false
script.Parent.MouseButton1Click:Connect(function()
if frame.Visible == false then
frame.Visible = true
end
end)
