I started having this issue recently where my plugin would load in before the rest of the studio did. It relies on StarterGui:DescendantAdded(), so it runs the script before the studio has even loaded, which is causing issues.
I have tried using game.Loaded to check if the studio has loaded yet but itâs still not helping.
This bug happens 100% of the time when I turn on automatic scaling on my plugin and enter a game.
Repro Steps
Step 1: Install AutoScale plugin
Step 2: Open a studio place and go to the plugins tab
Step 3: Press settings button from AutoScale plugin
Step 4: Enable âConvert to Scale Sizeâ which is a feature that relies DescendantAdded()
Step 5: Place some visible UI into the studio place and save the place
Step 6: Re-enter the studio place, and the UI should have grown enormously huge for some reason because its being scaled again when it detects UI being loaded into the game as new descendants.
Before (With automatic scaling feature off):
After (With automatic scaling feature on):
This bug happens in studio, I am running Windows 10.
This bug started happening when plugin installations were moved to the cloud. I suspect a result of this is that the plugin loads faster than studio loads, causing issues with DescendantAdded()
Multiple users have reported this issue with my plugin to me, and this issue is causing the UI in games to completely become enormous and game-breaking.
Thanks for reading