Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to hide this button under a tweened frame?

Asked by 4 years ago

So i'm tweening a frame that has a button in it and i want the button to be hidden once the frame it's in goes over it. The thing is it won't hide the button at all and i think abruptly hiding the button wouldn't look nice. Here is a Video

0
You could detect when the sliding frame is the same height as the two buttons and progressively scale the second button down whilst transparenting it out to make it "fade out". iDarkGames 483 — 4y
0
This Seemed to work thanks MysticalNinja12345 4 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Make the buttons ZIndex to -1 this will make this go under all other gui components that have a higher one. If you ever want to reset it, change it back to 1. Although you might have some problems because the gui is transparent.

0
I tried this and it didn't work but good try anyways MysticalNinja12345 4 — 4y
Ad

Answer this question