It’s already transparent and you’ll have to create a new frame to make a colored top bar.
You can’t actually set topbar transparency anymore. Instead, you can create a frame with the size of the old topbar.
Create a ScreenGui and set it’s IgnoreGuiInset to true. Add a Frame to it with Size 1, 0, 0, 36
. Now replace your code that set the TopBar transparency with something to set the frame’s BackgroundTransparency.
Oh yea! I messed up, I meant to say I want to make it opaque, sorry!
That is a good solution, but shouldn’t Roblox add a feature allowing developers to set the TopBarTransparency, instead of this alternative, it would make it so much easier.
The issue is it’s no longer a bar, and the bottom of the new icons touches what would be the bottom of the bar, so it would look strange with a few pixels gap above, and no gap below.
It’s just one of those design choices by Roblox, but I imagine the SetTopBarTransparency method is supposed to be deprecated now, though the devhub article still shows the old design.
It may be worth making a #platform-feedback:developer-hub post about it, if there isn’t already one open.