Core Backpack is still visible?

So in my core script I have done

game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)

and when the player would click their mouse the tool would still appear in their hotbar or whatever you call it.

So now I’m trying to fix that. I tried these two things:

repeat wait() until game.Players.LocalPlayer.Character
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
wait(10) --there's an intro that plays first
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)

Yet the tool would still appear in the hotbar.

That has led me to this question: “Does making a tool or an accessory go to the charcater make it appear in the hotbar even if Backpack isn’t enabled?” If that isn’t so, then how is the Core Backpack still visible?

This is the code that makes it go to the character:

	if skillTab.BladeType == "Double" then
		for i, tool in pairs(plr.Character:GetChildren()) do
			if tool:IsA("Tool") then
				tool:Destroy()
			end
		end
		lightsabers["Double-Bladed Lightsaber"]:Clone().Parent = plr.Character
	elseif skillTab.BladeType == "Single" then
		for i, tool in pairs(plr.Character:GetChildren()) do
			if tool:IsA("Tool") then
				tool:Destroy()
			end
		end
		lightsabers["Single-Bladed Lightsaber"]:Clone().Parent = plr.Character
	elseif skillTab.BladeType == "Quad" then
		for i, tool in pairs(plr.Character:GetChildren()) do
			if tool:IsA("Tool") then
				tool:Destroy()
			end
		end
		lightsabers["Quad-Bladed Lightsaber"]:Clone().Parent = plr.Character
	elseif skillTab.BladeType == "Blue" then
		for i, tool in pairs(plr.Character:GetChildren()) do
			if tool:IsA("Tool") then
				tool:Destroy()
			end
		end
		lightsabers["Blue Lightsaber"]:Clone().Parent = plr.Character
	else
		warn("DoubleBlade if statement came here")
	end

yes, I know, it’s probably really bad.

Still need help. If you can help me, that would be helpful!

The code you posted above:

Blockquote game:GetService(“StarterGui”):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)

worked for me by putting it in a LocalScript located in StarterPlayerScripts.

I also couldn’t access the tools after disabling the Gui.

Didn’t work. Make sure you also test it by using a script that gives you a tool.

Just tested it out, still remained disabled. Are you sure you stored the LocalScript in StarterPlayerScripts and not StarterPlayer or StarterPlayerCharacter?

Obviously I would check to make sure I stored it in the correct place! I’m not that dumb…

Used debugging print statements to check if it got stuck or something, and both printed.

wait(10)
print('Before')
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
print('After')

And you made sure you actually made a tool go to the character (not talking about StarterPack)?

Putting a script in the wrong place has nothing to do with being dumb. And yes, I did.

Well now I am confused. It works for you, but not for me. What are we missing here?

And anyone else can join this discussion! It would really help!

Should probably show a video with reproduction steps so you can be helped out further. Just text doesn’t really help others visually see the issue.

1 Like