I want the script to do this:
When I click the button called "Open", it would show another frame (by default, it's not visible) Is there something wrong with my script? The button changes the text, but the frame isn't showing up.
P.S. Output shows no errors.
script.Parent.MouseButton1Click:connect(function()
local window = game.StarterGui.ProcessGUI.MainWind
if window.Visible == false then
window.Visible = true
script.Parent.Text = "Close"
else
window.Visible = false
script.Parent.Text = "Open"
end
end)
