I change the Z index of a text box and it won't appear in front of the frame I want instead it appears behind it.
In roblox gui's everything that is created FIRST, gets rendered FIRST. (If you'd create 2 frames, the 2nd frame would be rendered "on top" / "over" of the first one.)
I have to admit, Roblox's Z-Index is pretty bad, though it has its functionality.
Everything has to be inside the SAME ScreenGui for it to have a good effect.
How it works:
01 | --[[ |
02 | Structure: |
03 | Frame1 - ZIndex 1 |
04 | -Frame2 - ZIndex 1 |
05 | --TextButton - ZIndex 1 |
06 |
07 | Foreground / view order: |
08 | TextButton |
09 | Frame2 |
10 | Frame1 |
11 |
12 | ----------- |
13 |
14 | Structure: |
15 | Frame1 - ZIndex 1 |
@RubenKan Thank You for all your help. If it weren't for you I wouldn't have bumped into this! For every one having my problem of putting frames and GUIs behind and in front of each other, use the** DisplayOrder** property in your ScreenGUI!!! The higher the property the more front it will go and the lower the property, the more behind it will go!
http://wiki.roblox.com/index.php?title=API:Class/ScreenGui/DisplayOrder