Confused😮

So I took a pregnancy test and it said I am pregnant . aight cool!! Then I get my period !! What does that mean ??! I took another one and boom pregnant🍼so what's going on ?