Is there any way to make a custom crouch function?

Hey ,

It is totally possible. Here is one way: