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.