local variable in the function

I can’t create a local variable in the function, the variable itself becomes global

1 Like

Hi @fra91204, variables in scripts are always local to the script, unless you use CoSpace properties, which is essentially a global variable, available to all scripts and across scenes.

In terms of being local to the function, could you explain why you need this and can’t simply change the name of the function variable?