2D Platformer Character Controller

This is probably the dummest question I could ask, but since the youtube videos about how to make a 2d character controller don’t seem to work, does somebody have the character controller script for a 2D platformer?
Optional: it would be better for me if the script contained also the code for rotating the player when he goes leftest or right

I know you said you’ve watched videos before and they don’t seem to work but i’m really curious if you’ve watched Brackeys. He does a bunch of general tutorials which are very intuitive and easy to follow which have come in handy for me in previous projects. Seeing you must be a bit new to unity i’m sure his videos could help you.