--		print("Keyframe : ".. FrameName)

		local RepeatAnim = StopToolAnimations()
		PlayToolAnimation(RepeatAnim, 0, Humanoid)
	end
end


function PlayToolAnimation(AnimName, TransitionTime, Humanoid)
	if AnimName ~= ToolAnimName then
		
		if ToolAnimTrack then
			ToolAnimTrack:Stop()
			ToolAnimTrack:Destroy()
			TransitionTime = 0
		end

		local Roll = math.random(1, AnimTable[AnimName].TotalWeight) 
		local OrigRoll = Roll
		local Index = 1
		while Roll > AnimTable[AnimName][Index].Weight do
			Roll = Roll - AnimTable[AnimName][Index].Weight
			Index = Index + 1
		end