I removed the backpack Gui and the tool Gui, So you can't equip it nor unequip it. When I did this script. It doesn't not work.

First local script

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

Second LOCAL script.

local Players = game:GetService("Players")
 
local player = Players:FindFirstChildOfClass("Player")
if player and player.Character then
	local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
	if humanoid then
		local tool = workspace:FindFirstChild("Tool")
		if tool then
			humanoid:EquipTool(tool)	
		end
	end
end

Please tell me what Is wrong.

1 comment

0

What are the scripts parents?