How can you set up a function library to reference or do you have to copy and paste a function into each script that uses it?

Thanks in advance.