for key, value in pairs(debuffs) do local name, _, _, _, _, duration, expires = UnitDebuff("raid1", value) -- do whatever hereend