Need help with crouching,Problem with crouching

Hi, i’m new to unity and i’m making an fps style game in 3d.
I have already made a movement script with the help from a brackeys tutorial: FIRST PERSON MOVEMENT in Unity - FPS Controller - YouTube, but i ran into some problems while trying to add crouching to my game, because it had always an error, so I scrapped the script and made a new one exactly like, brackeys’ but there seems to be no tutorial that I can use add crouching to my game, if you could help me, that would mean a lot.

thanks in advance.

This is a great tutorial for starters. Follow along with each episode and you’ll learn loads to then use in your own game - Unity FPS Tutorial - YouTube