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 ?