So what it supposed to do is say open when the shop frames isn't visible and when the frames are visible it should say close. but it dosen't work.
script.Parent.OpenClose.MouseButton1Click:Connect(function()
local scp = script.Parent
local Main = script.Parent.OpenClose
if scp.Frame.Visible == false then
Main.Text = "Open"
scp.Item1.Visible = true
scp.Item2.Visible = true
scp.Frame.Visible = true
end
if scp.Frame.Visible == true then
Main.Text = "Close"
scp.Item1.Visible = false
scp.Item2.Visible = false
scp.Frame.Visible = false
end
end)
Extra information/how gui's are set up.
Help would be appreciated, thanks

1 comment
you could just set scp's visibility