So I have a Close/Open, and I'm developing a GUI that when click closes the frame its in and opens another frame and the script won't work exactly went wrong. (I know I'm dumb)
---Information--- The button is in frame 1 and has a local script in it for the script.
---Script---
script.Parent.MouseButton1Click:Connect(function()
if script.ScreenGui1.Frame1.Visible == true then
script.ScreenGui1.Frame1.Visible = false
wait(0)
if script.ScreenGui1.Frame2.Visble == false then
script.ScreenGui1.Frame2.Visible = true
end
end
end)

6 comments
Can you provide a screenshot of how the objects are organised, please?
how?
Is the GUI a child of the script?
no
Okay, let me try something.
Scratch that, for this problem to be solved you would need to provide more information such as where the script is and the frame etc.