Credit = script.Parent.Credit Frame = script.Parent.Frame TextLabel = Frame.TextLabel Credit.MouseButton1Click:Connect(function() if Credit.Visible == true and Frame.Visible == false then Frame.Visible = true Credit.Visible = false elseif Credit.Visible == false and Frame.Visible == true then Frame.Visible = false Credit.Visible = true end end)
Credit.MouseButton1Click:Connect(function() Frame.Visible = not Frame.Visible end)
it should be this instead. give it a try
Credit = script.Parent.Credit Frame = script.Parent.Frame TextLabel = Frame.TextLabel Credit.MouseButton1Click:Connect(function() if Credit.Visible == true then if Frame.Visible == true then Frame.Visible = true Credit.Visible = false end end end) Credit.MouseButton1Click:Connect(function() if Credit.Visible == false then if Frame.Visible == true then Frame.Visible = false Credit.Visible = true end end end)
sometimes breaking things down may be the fix. Not guaranteeing anything though