I need to find out if the colors in the area around the bar are lighter or darker. If they are lighter then the bar will change to black. If they are darker then the bar will change back to white.
This is a simple concept that I see in a lot of new phones that use a home bar instead of a button.
What have I tried?
Because the system has different frames that constantly change and all have potentially different colors, I need a way to just get the color of a certain area of the actual ScreenGui and not just a frame.
I have looked into forums about doing things like ScreenGui:GetPixelColor() or things similar, however, they have not been implemented into Roblox and likely never will.
I also thought about looping through every visible frame and finding the one with the highest ZIndex, however, it is not very efficient and doesn’t work with image-based GuiObjects.
If you have any suggestions they would be greatly appreciated!
didnt notice that part, would you could do is use GetGuisAtPosition, loop through them, check which are in the mobile gui, check for zindex then apply the color
Not exactly the solution I hoped for, but I suppose sacrifices will need to be made to get this to work, as Roblox doesn’t have a good feature to make this work without excessive workarounds.