Making frames parented to the main frame invisible if they go outside the main frame

Hello!

This is a simple issue (I think) and can probably be solved if I search it up in the internet and word it correctly, but I was not able to find a working solution after trying to search it up.

Let’s say that I have the main frame, and inside the main frame are a bunch of little draggable frames that can be moved around. The thing I’m looking for is if the little frames were to get dragged outside the frame, it would go invisible. But not completely invisible, I’m talking about like parts of it that are going outside the main frame will be invisible while parts of it that are still inside the main frame will be visible.

The funny thing is that I have achieved this in the past just by playing around some properties, but I completely forgot how I accidentally did that and I’m trying to look at how I did it but I can’t figure it out. Thanks!

1 Like

its a properly for ui called ClipDescendants

I tried setting the ClipDescendants property on the main frame, but it didn’t work. I also tried setting it on the little draggable ones, but also didn’t work.

A CanvasGroup will hide descendants that are out of its boundaries

If this is what you are looking for replace it with your main frame