Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

[solved] defining multiple variables in one line?

local x, y, z = 1,2,3 --example code

i'm wondering how the scope of defining multiple variables in one line works so would y & z also be local like x or global?

edit: in my testing they're all local but im not 100% sure

2 comments

0

They are all local, yes

0

i thought so, thanks

1 answer

it took me longer than it needed to but they're all local, im 100% sure now. post is here if anyone needs it in the future

This discussion is preserved as it was. New answers, comments, and votes are closed.