Backpack Comes Back

This code looks simple, right?

local StarterGui = Game:GetService('StarterGui')
 
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)

But after the player respawns I get this glitch:

What is going on? All the other GUI stuff goes away but the backpack comes back in some mutilated state after you reset your character…

It happens here.

Arghugh, the health script is also throwing errors? And the GUI is coming back and it doesn’t make sense at all ._.

I just went and fixed all the health script bugs that I could see, I’ll deploy these early next week. I’ll take a look at this backpack bug.

Awesome! It was annoying seeing errors in the output that I couldn’t fix :stuck_out_tongue: Especially when I had all Core GUI except chat turned off…

I appreciate it! I have no idea why it is happening and it happens EVERY time :?

Still waiting for a fix :frowning:

Yo nick, remember we were having this problem in the Alpha test of my game today?

Here’s a fix:

while wait(1) do game.StarterGui:SetCoreGuiEnabled("All",false) end

[quote] Yo nick, remember we were having this problem in the Alpha test of my game today?

Here’s a fix:

while wait(1) do game.StarterGui:SetCoreGuiEnabled("All",false) end [/quote]

That’s like, like, I don’t wanna have to do it in a loop ._. I guess I can make it a longer wait or something. Thanks

I just want Roblox to fix it :stuck_out_tongue:

Dude, running it every second takes up virtually no processing power. I tested it. It affects nothing.

I also put it under a test for 60 minutes. It occurred 0 times.

[quote] Dude, running it every second takes up virtually no processing power. I tested it. It affects nothing.

I also put it under a test for 60 minutes. It occurred 0 times. [/quote]

Well it’s an acceptable fix. I just think Roblox should actually fix the cause :stuck_out_tongue:

I’m late but…

local player = game.Players.LocalPlayer

function fix()
local backpack = player:WaitForChild("Backpack")
backpack.ChildAdded:connect(function ()
game.StarterGui:SetCoreGuiEnabled("Backpack".false)
end)
end

fix()

if not game.StarterGui.ResetPlayerGuiOnSpawn then
player.CharacterAdded:connect(fix)
end