My rent check bounced because someone hacked into my account so I gave my roommate half of it immediately after it bounced asked them to be patient my back is looking into it they took the payment and said OK! Two weeks later before the month was even up I left with a friend and while I was gone they change the locks and told me not to come back they changed the locks and were going to sell my belongings! I tried to pay them the rest of what I owed them and they said they didn't want it and to never come there again! Can they legally do that?
If you were both co-tenants, your roommate would have no right to evict you at all - only the landlord could.
If you were a subtenant, the roommate still could not lawfully lock you out or engage in similar "self-help" (see e.g. Civil Code Sections 789.3 and 1940.2), and would have to lawfully evict via the unlawful detainer process.
You should complain to the police - they sometimes intervene in illegal lockout situations. If you are a co-tenant, you should also complain to the landlord, and ask for a key to the new lock, etc.
You could also sue your roommate either in small claims court (usually up to $10k), or by hiring a local landlord-tenant attorney.
Years licensed, work experience, educationLegal community recognition
Peer endorsements, associations, awardsLegal thought leadership
Publications, speaking engagementsDiscipline