Help with masking two unrelated, transparent GUIs

To elaborate, I’m using transparent viewport frames to make a cell shading render for players and whatever else I decide to use for it. Right now, I’m currently using two GUIs for this: one for the player specifically, and another for everything else. I bet you can already see the issue, since two different transparent GUIs are gonna overlap.

The same happens in reverse, you can “see” the player through the dummies.

Anyone got a fix for this? I honestly have no clue as to how I can fix this.

Try setting the players Viewport Frame’s ZIndex to a higher number than the Dummys Viewport Frame’s.

honestly why didn’t i think of that, haven’t tried it yet but it most definitely works.

thx for the help tho!

on further thought, I just realized that it probably wouldn’t work. since the guis are transparent, their layering wouldnt really matter since you can just see through them. still, thx for the input! any help is appreciated, and its always fun to think about how the logic would work.