Help with gui collision math


im trying to make a function where it would see how much of a gui is inside another and depending on it would return true or false.
i already have a function for seeing if a gui is touching another but even if its a single pixel it works

First picture would be something that id want to approve with the usage of this function.
Second picture i would like for it to return false.

I know this most likely involves AbsoluteSize/Position but im really bad with guis and im not fully sure how i would do this but i know its possible (hopefully)

1 Like

I suggest u check this out. If it doesn’t work pls reply or dm me presonally.

no sorry that doesnt really help my situation mine is for like putting a gui frame into a slot. kinda like a toolbar but its for inventory/card slots

Found this which might help u out, but if it doesn’t roblox has a builtin function that i forgot the name for.