Hello i am starting to make my own scripts and i just would like to know when you would use functions

Stand -
Action -
Walk -
Node -

and the others Please tell me when to use these !

*note* i will be trying to make free scripts just once i master making these 100% afk!