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

What Value stores arrays?

What Value (NumberValue, ObjectValue, StringValue, etc) can store arrays

5 comments

0

Neither

0

I suppose string value can store arrays values to some extent

0

How

0

By inputting the data one by one probably then putting a mark as to how the index is seperated from each other like string.Value = [0] .. " -seperater-" .. [1] etc2. using a for loop to put it and identify which is [0] [1] by finding "-seperater-"s. Just an idea though

0

what's the point of that? just JSONEncode it

1 answer

One way of storing arrays is to use a Module Datastore or just a Module Table if you are only planning on holding the arrays until the server shuts down (No saving).

There is no value that can hold arrays and using a string value to hold it would be bad practice as it is not very practical.

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