--		print(AnimName .. " * " .. Index .. " [" .. OrigRoll .. "]")

		local Anim = AnimTable[AnimName][Index].Anim

		-- load it to the humanoid; get AnimationTrack
		ToolAnimTrack = Humanoid:LoadAnimation(Anim)
		 
		-- play the animation
		ToolAnimTrack:Play(TransitionTime)
		ToolAnimName = AnimName

		CurrentToolAnimKeyframeHandler = ToolAnimTrack.KeyframeReached:connect(ToolKeyframeReachedFunc)
	end
end

function StopToolAnimations()
	local OldAnim = ToolAnimName

	if CurrentToolAnimKeyframeHandler then
		CurrentToolAnimKeyframeHandler:disconnect()
	end

	ToolAnimName = ""
	if ToolAnimTrack then
		ToolAnimTrack:Stop()
		ToolAnimTrack:Destroy()
		ToolAnimTrack = nil
	end

	return OldAnim
end
