I’ve created an icon for the Topbar, to toggle a page on and off, as explained in this post: How to get the position of Topbar icons?
My aim is to detect when a Core GUI is changed, then alter the position of my icon accordingly.
The problem is though, https://www.robloxdev.com/api-reference/event/StarterGui/CoreGuiChangedSignal has an elevated context, so can’t be used.
Are there any alternatives for this method, and why was this made a secure feature in the first place?
Update:
DataExhauster suggested detecting when a game descendant is added/removed, which does work but is a very hacky and inefficient method.
https://www.robloxdev.com/api-reference/event/PlayerGui/TopbarTransparencyChangedSignal doesn’t have an elevated context so I can’t see any reason for CoreGuiChangedSignal to be?