I asked this a few days ago but didn't get a good response, basically what I'm trying to do is create a Gui frame and have it's border a wooden decal. Would I have to make individual images for each corner/sides?
Would I have to make individual images for each corner/sides?
No. Of course not.
What is ZIndex?
ZIndex is a Graphic User Interface
feature that allows the programmer to determine the order in which the Gui
will be shown. The ZIndex
takes in values from 1-10
with 10
being in the front and 1
being in the back.
How to implement ZIndex?
I am assuming you already have your image in the ScreenGui
WoodenImage
size
bigger than the regular frame.WoddenImage
. Gui
and head over to its Properties
ZIndex
Now this is the actual part.
WoodenImage
is to have a ZIndex
of 1
OtherFrame
is to have a ZIndex
of 10
Explanation
What I am doing above is that I am setting the WoodenImage's
ZIndex
to 1
which will essentially place the Image
all the way to the back whereas with the OtherFrame
, I am setting it to 10
which will result in the OtherFrame
becoming in front of the WoodenImage
.
[Side-Note] Instead of using ZIndex
itself, you can also however place the OtherFrame
inside of the WoodenImage
. However if that is not your goal, then ZIndex
is the best option for you.
Should you have any questions, feel free to comment below.