@Pokemoncraft5290 said it well, some people organize their code that way,but most people do it because they can use those functions elsewhere without having to create it again. its convenient
yes, instead of having to copy and paste the code they can just call it, also they can make it run whenever they want to not only when the player joines
Normally I use the second method if I don’t have to do the same thing somewhere else again. But overall both methods shouldn’t make a difference in performance.
But when people use the first method and only use the function once it kinda triggers me.