Hi @Darnell Hunter, first of all, welcome to BP! Getting into real estate is definitely a great way to start building your financial independence through passive income. Do you own a home already?
Of course I don't know your full situation but will share my thoughts/advice:
Option 1: not sure what is actually causing your credit to be low however, have you worked on fixing your credit? I would be happy to DM with you on some specifics but you could consider using that cash to fix your credit. This is a ticket to entry in most investment scenarios.
Option 2: try looking for partners who can invest with you; since you have some cash, you'd want to find other investors who have good credit and hopefully some cash as well. You could find a property to flip where you simply provide the part of the funds in exchange for a portion of the profit.
Option 3: you could find a property to house hack but your ability to get a home loan would depend on truly how bad your credit is. If this would be your first time buying a home, you could look for a multi family that you could live in and rent out while still qualifying for first time owner programs and low down payments. You'd want to consult with a mortgage broker on this to find out your options. I think the min credit score these days is around 650-680 or so.
Option 4: you could do a couple small hard money loans. This would help put your money to work, give you time to fix your credit and you could learn about the deals from the borrowers to give you more experience with the types of deals that are out there.
I'm sure there are other options but if I were in your position, I'd do whatever I need to do to fix my credit while looking for local investor partners to put my $40K to work.