How to use cloth simulations with rigged body

Hi! I’m quite new to blender. How could I pin something like hair to a rigged character that it would interact with everything but wouldn’t drop? I can provide screenshots if needed. Thanks in advance.

Take a look at this tutorial:

Thanks that helped a lot!