Use same variable in different functions?

Hello everyone,

I have a function that includes a variable which I need to use in a different function after some effects occur.

Is this possible? If I try to use it it doesn’t recognize it.