Is this possible?

Is it possible to make a variable multiple objects? For example there are two trees in the workspace and I want to reference both of them into 1 variable. Is that possible?

Pretty sure it is

local a, b = game.Workspace.A, game.Workspace.B

Should work like that.

yes just make a table

local Trees = {Tree1, Tree2}

@nubeyes95 that counts as two variables, not one

1 Like

I guess I misunderstood that. Thanks for correcting me.

lol I forgot tables existed. Thanks.

1 Like