I’ve been facing this problem for a while now. If you didn’t know, when you play videos with the video instance in your game, only 2 are allowed to be played at the same time. I want to check if a GUI Object (doesn’t have to be a video) is visible in a ScrollingFrame, so I can make it play or not if it is visible.
I have no clue where to begin. Anything will be great!
I don’t know if this is worth mentioning, but in the ScrollingFrame there is a UIListLayout with 0 padding
Rectangular GUI objects can be seens as axis-aligned boxes. Say gui object A is a child of gui object B which has ClipsDescendants on. Checking if A is visible inside the “window” of B is like checking if any part of A is inside of B, or checking if they’re colliding in other words. Luckily it’s really easy to do collision between axis-aligned boxes. Check out this tutorial, and feel free to ask if you have any other questions: