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

How do I store multiple things inside a table?

How would I store multiple strings or numbers inside the same line in a table?

local Test = {
Text1 = 23, "hi"}

and then be able to print(Test.Text1[1]). Is there any way to do this? I've searched to no avail.

1 answer

✓ Accepted answer

It's actually pretty simple! All you have to do is allocate another table to the data piece:

local Table = {
	Text1 = {25, "Hi"};
}

As a beginner, it's tough to research tutorials or find informational articles. This is because most keywords required to find this information are technical jargon; try finding out what the topic of code you're working with is called: "Tables", and then using it in your query.

2 comments

1

wtf speedy

0

Cheers, I thought it would have something like this, but I found nothing before you.

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