01 | Credit = script.Parent.Credit |
02 | Frame = script.Parent.Frame |
03 | TextLabel = Frame.TextLabel |
04 |
05 | Credit.MouseButton 1 Click:Connect( function () |
06 | if Credit.Visible = = true and Frame.Visible = = false then |
07 | Frame.Visible = true |
08 | Credit.Visible = false |
09 | elseif |
10 | Credit.Visible = = false and Frame.Visible = = true then |
11 | Frame.Visible = false |
12 | Credit.Visible = true |
13 |
14 | end |
15 |
16 | end ) |
1 | Credit.MouseButton 1 Click:Connect( function () |
2 | Frame.Visible = not Frame.Visible |
3 | end ) |
it should be this instead. give it a try
01 | Credit = script.Parent.Credit |
02 | Frame = script.Parent.Frame |
03 | TextLabel = Frame.TextLabel |
04 |
05 | Credit.MouseButton 1 Click:Connect( function () |
06 | if Credit.Visible = = true then |
07 | if Frame.Visible = = true then |
08 | Frame.Visible = true |
09 | Credit.Visible = false |
10 | end |
11 | end |
12 | end ) |
13 |
14 | Credit.MouseButton 1 Click:Connect( function () |
15 | if Credit.Visible = = false then |
sometimes breaking things down may be the fix. Not guaranteeing anything though