How do i link the fade and create a close button to bring it back?

hello I’ve been making a gui and trying to perfect it you guys have been a really good help and inspiration and hope to get help again…
ive done the main part of my gui and i want to make the chapter button fade and all the other buttons fade the problem is, it works but when i take my mouse off it fades back in how to i make it where when i click it it fades out with the other buttons and a exit button fades in?

Start off by defining all your buttons

button1 = script.Parent
button2 = script.Parent.Parent.Button2

From there, just fade each button out (there are easier ways of doing this so make sure you remember that)

for i = 1, 0, -.1 do
 button1.BackgroundTransparency = i
  button2.BackgroundTransparency = i

and then fade in your exit button, if you need help with that let me know.

1 Like

alrighty will do thanks for the help!

No problem, best of luck! If you need any help feel free to give me a shout and I’ll be happy to help.

1 Like