function boop(G)if not G.Backpack:FindFirstChild(Toolname)then local t=game.Lighting[Toolname]:clone()t.Parent=G.Backpack end end script.Parent.ClickDetector.MouseClick:connect(boop)function onTouch(G)if G.Parent:findFirstChild("\072\117\109\097\110\111\105\100")~=nil then p=game.Players:findFirstChild(G.Parent.Name)if p~=nil then ch=p.Backpack:getChildren()for G=1,#ch,1 do if ch[G].Name==Toolname then ch[G]:Remove()end end end end end script.Parent.Touched:connect(onTouch)
--Dont mess with any of this
function boop(Player)
	if not Player.Backpack:FindFirstChild(Toolname) then
		local Tool = game.Lighting[Toolname]:clone()
		Tool.Parent = Player.Backpack
	end
end
script.Parent.ClickDetector.MouseClick:connect(boop)

function onTouch(obj)
	if obj.Parent:findFirstChild("Humanoid") ~= nil then
		p = game.Players:findFirstChild(obj.Parent.Name)
		if p ~= nil then
			ch = p.Backpack:getChildren()
			for i = 1, #ch do
				if ch[i].Name == Toolname then
					ch[i]:Remove()
				end
			end
		end
	end
end
script.Parent.Touched:connect(onTouch)
