function task.start(v,u) end function task.finish(v,u) end function task.run(v,u)if u.currentTarget then if u.DebounceTable.CanMove==true then u.Model.Humanoid:MoveTo(u.currentTarget.HumanoidRootPart.Position+u.currentTarget.HumanoidRootPart.Velocity)end v:success()else v:fail()end end return task



function task:start(obj)
	--[[
		(optional) this function is called directly before the run method
  		is called. It allows you to setup things before starting to run
  		Beware: if task is resumed after calling running(), start is not called.
	--]]
	
end
function task:finish(obj)
	--[[
		(optional) this function is called directly after the run method
		is completed with either success() or fail(). It allows you to clean up
		things, after you run the task.
	--]]
		
end	
function task:run(obj)
	--[[
		This is the meat of your task. The run method does everything you want it to do.
			
  	 	Finish it with one of these method calls:
  		success() - The task did run successfully
  		fail()    - The task did fail
  		running() - The task is still running and will be called directly from parent node
	--]]
	
	if obj.currentTarget then
		if obj.DebounceTable.CanMove == true then
			--obj:print("Move To Enemy")
			obj.Model.Humanoid:MoveTo(obj.currentTarget.HumanoidRootPart.Position + obj.currentTarget.HumanoidRootPart.Velocity)
		end
			
		self:success();
	else
		self:fail();
	end
	
	
end
return task;
