Image Label will not go behind Viewport frame

I have an inventory system nearly finished, and behind each viewport of the item, i want to show a glow related to the items rarity. It works well, but the glow is ALWAYS in front of the viewport and I have no idea how to fix it. I’ve tried to mess with Zindex, I’ve tried to parent the image label to the viewport, and literally anything else possible. Heres what it looks like:
image

As you see, the glows are infront of the viewports. What I am trying to achieve is this:
image

Now this is apart of the older version of the game which someone else coded and they had the glows behind the viewport. In my code when I put the tool to the viewport and do the camera stuff it works fine, but this damn image label will not go behind the viewport, and I’ve looked everywhere online and seems like no one else has this issue. In the older version the inventory templates are frames, whereas my templates are buttons and I dont if this has to do with anything, but heres the explorer layout for the template.
image
and heres the template from the older version:
image
if anyone has any idea on how to fix this please let me know, I’ve been trying to solve this for so long.

1 Like

Is it the zindex? A higher zindex will put an item on top so your viewportframe might have a lower zindex than the imagelabel

I’ve already tried this and mentioned it in my post. I messed with indexes making the viewport have a higher zindex than the glow

usually child ui appears ontop of the parent ui no matter the zindex

you can stop this happening is by changing the ZIndexBehavior property of the screen gui from Sibling to Global.

be warned it might mess up some of your other ui, so another way is to parent the viewport to the glow

Can you recreate this with as few instances as possible and provide the file of that small copy?