-- stops specific anim

function module.alreadPlayingAnim(name,hum, data)
	local stop = data.stop or nil
	local speed = data.speed or nil
	local resume = data.resume or nil
	local tim = data.tim or nil
	
	local AnimationTracks = hum:GetPlayingAnimationTracks()

	for i, track in pairs (AnimationTracks) do
		if stop~= nil then 
			if track.Name == name then
				track:Stop()
			end
		end
		if speed~= nil then 
			if track.Name == name then
				track:AdjustSpeed(speed)
				
				-- continue?
				if resume ~= nil then
					task.delay(tim or 1, function()
						track:AdjustSpeed(1)
					end)
				end
				
				-- delay?
				
				
			end
		end
	end

end
