:SetTopbarTransparency(0) Unreliable?

[code]local StarterGui = game:GetService(‘StarterGui’)

script.Tools.Changed:connect( function()
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, script.Tools.Value )
game:GetService(“Players”).LocalPlayer:WaitForChild(“PlayerGui”):SetTopbarTransparency(0)
end)

–Dumb stuff
game:GetService(“Players”).LocalPlayer:WaitForChild(“PlayerGui”):SetTopbarTransparency(0)
print(“WHY”)

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All , true )
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health , false )
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, script.Tools.Value or
( game.Players.LocalPlayer:WaitForChild(“Barn”).Value ~= nil ) )

game:GetService(“Players”).LocalPlayer:WaitForChild(“PlayerGui”):SetTopbarTransparency(0)
print(“OMG”)

[/code]

What is going on?

This looks like a race-condition bug where the transparency was set before the Topbar is ready for it.
I noticed this bug a couple weeks ago and created a fix for it:

The fix is expected to be released this Thursday (April 30), sorry about the inconvenience in the meantime.

[quote] This looks like a race-condition bug where the transparency was set before the Topbar is ready for it.
I noticed this bug a couple weeks ago and created a fix for it:

The fix is expected to be released this Thursday (April 30), sorry about the inconvenience in the meantime. [/quote]

I’m glad a fix is coming :slight_smile: The core gui used to suffer similar issues with settings not saving but I haven’t dealt with them in a good while.

1 Like