Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to assign multiple values to one variable?

Asked by 1 year ago

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!

0
You're looking for an "array". See: https://developer.roblox.com/en-us/articles/Table Ziffixture 6913 — 1y
0
Thank you! SilentKiller5557 8 — 1y

Answer this question