so, why am I able to make a variable without declaring ‘local’
I tried making a variable for userinput without declaring ‘local’ and it worked
so, why am I able to make a variable without declaring ‘local’
I tried making a variable for userinput without declaring ‘local’ and it worked
Sorry to break it to you but this has been a feature since lua started. Here, read this topic to understand more: Confused with the variable scopes here - #10 by nicemike40