How do i make a local variable global across the whole script?

Wasn’t that answered here?