I need to assign multiple values to one variable.

I need multiple labels defined all in one variable.

I saw an example like this:

local Text = script.Parent, script.Parent.Text, --and so on.

but it did not work for me.

This was the script:

local BDx = script.Parent.Parent.BDs.classBDx, script.Parent.Parent.BDs.classBDx1

There were also 5 more "script.Parent.Parent.BDs.ClassBD" with different things defined obviously.

Help would be appreciated!

2 comments

0

You're looking for an "array". See: https://developer.roblox.com/en-us/articles/Table

0

Thank you!