Force to equip tool at all times

  1. What do you want to achieve?
    Player not able to unequip a tool, Always have the tool inhand

  2. What is the issue?
    So I made it so players don’t have access to a backpack but at a certain point in my game they are able to pick up a tool needed to fire a event when they touch the in this case door now they need to have the tool inhand otherwise the event wont fire eventho I disabled Canbedropped and removed the backpack they are still able to backspace the tool it will not drop but it will disapear since there is no backpack any way to solve this?

  3. What solutions have you tried so far?
    I tried finding a solution on youtube to Forcequip a tool but did not find a solution to my problem

Ive tried this

local UIS = game:GetService("UserInputService")
local ContectActionService = game:GetService("ContextActionService")

local Player = game.Players.LocalPlayer
local Character = script.Parent
local Humanoid = Character:WaitForChild("Humanoid")
local Backpack = Player.Backpack


local Picnic = Backpack.Picnic
local HasPicnic

task.wait(1)

local function OnInput(input, Chat)
	if Chat then return end
	local GetKeyCode = input.KeyCode
	if GetKeyCode == Enum.KeyCode.One and not HasPicnic then
		HasPicnic = true
		Humanoid:EquipTool(Picnic)
	elseif GetKeyCode == Enum.KeyCode.Two and HasPicnic then
		HasPicnic = false
		Humanoid:EquipTool(Picnic)
	end
	
end
UIS.InputBegan:Connect(OnInput)

image

I think you forgot about Player.StarterGear.
It will clone into Backpack when player is OOFing.