--[[Running Logic]]
--
local equipped = false
local rayparts = {}

local oldC0 =nil
local nweld


Tool.Equipped:connect(function(mouse)
	wait(0.1)
	--game.Players.LocalPlayer:GetMouse()
	Spawn(function()
		local colorChoice = 1
		if not Tool.Parent:FindFirstChild('Torso') or not Tool.Parent.Head:FindFirstChild('RightWeld') or not Tool.Parent:FindFirstChild('Humanoid') then return end
				hweld = Tool.Parent.Torso['Neck']
		holdC0 = hweld.C0
		equipped = true
		while equipped and Tool.Parent:FindFirstChild('Torso') do
			local tframe = Tool.Parent.Torso.CFrame
			tframe = tframe + tframe:vectorToWorldSpace(Vector3.new(0, 0,0)) 
			local taim = (mouse.Hit.p + (mouse.Hit.lookVector * 300)) -( tframe.p )
		hweld.C0 = (CFrame.new(Vector3.new(0,1,0),tframe:vectorToObjectSpace(taim))*CFrame.Angles(math.rad(-90),0,math.rad(-180)))
		
			
			wait()
		end
		hweld.C0 =holdC0
		
	end)
end)

Tool.Unequipped:connect(function(mouse)
	equipped= false
	if nweld then
		nweld.MaxVelocity =.15
		nweld.C0 =oldC0
	end
	
end)
