function SetCollide()if Tool:IsDescendantOf(game.Workspace)==true then Tool.On.Value=false for x=1,#ToolPart,1 do if ToolPart[x].className=="\080\097\114\116"then if ToolPart[x]:findFirstChild("\067\111\108\108\105\100\101")~=nil then if ToolPart[x].Collide.Value==false then ToolPart[x].CanCollide=false end else ToolPart[x].CanCollide=true end end end end if Tool:IsDescendantOf(game.Players)==true then for x=1,#ToolPart,1 do if ToolPart[x].className=="\080\097\114\116"then ToolPart[x].CanCollide=false end end end end Tool.Equipped:connect(Equip)Tool.Unequipped:connect(Unequip)

function SetCollide()
	if Tool:IsDescendantOf(game.Workspace) == true then
		Tool.On.Value = false
		for i = 1, #ToolPart do
			if ToolPart[i].className == "Part" then
				if ToolPart[i]:findFirstChild("Collide") ~= nil then
					if ToolPart[i]["Collide"].Value == false then
					ToolPart[i].CanCollide = false
					end
				else
					ToolPart[i].CanCollide = true
				end
			end
		end
	end
	if Tool:IsDescendantOf(game.Players) == true then
		for i = 1, #ToolPart do
			if ToolPart[i].className == "Part" then
			ToolPart[i].CanCollide = false
			end
		end
	end
end


Tool.Equipped:connect(Equip)
Tool.Unequipped:connect(Unequip)
