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

How can i keep a Gui frame/button always above the other Guis?

Asked by
NexeusX 137
7 years ago

So i have a draggable Box, in my Gui but when i drag it across the other Gui elements it goes behind them and not above them, how can i make it so this Box that i am dragging is always above the Gui's?

1 answer

Log in to vote
1
Answered by 7 years ago

I misunderstood this when I first read it but it's actually really simple! You can start by changing the ZIndex of the UIs. Let's create a scenario. You have 2 UIs, an image and some text. You want the text to be in front of the image? You would set the image ZIndex to 2 and the textLabel ZIndex to 1. Because it's 1 it will be the highest priority.

Ad

Answer this question