So essentially I'm trying to use a local variable in another function and obviously it's not working so I'm wondering if there's a way to move the contents of a local variable into a variable that can be used in other functions within the same script.