Ad
Log in to vote
0

How to assign multiple values to one variable?

Asked by 14 days 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 6863 — 13d
0
Thank you! SilentKiller5557 6 — 13d

Answer this question