Why people use local function instead of global

Hello there! When I see someone’s code with function, i see them with local. But with local you cant use function that are placed first. Who can explain these local functions?

You should declare all your variables as local. Local variables are “integrated into the environment in which they were created”. That’s why they’re obtained faster.

And you generally always create functions outside stuff like loops, so them being local doesn’t make much difference, other than being faster.