I've tried stocking many values that i could read one by one into a StringValue. It didnt work so i don't know how to do it. Here's what i've tried :
1 | -- The script that creates the value |
2 | local value = Instance.new( "StringValue" , game.Workspace) |
3 | value.Name = "TestValue" |
4 | value.Value = { "value1" , "value2" , "value3" } |
1 | -- A different script that is supposed to read the values |
2 | local value = game.Workspace.TestValue |
3 | for i = 1 , 3 do |
4 | print (value.Value [ i ] ) |
5 | end |
There is no way to do that, use more stringvalues. One stringvalue, one value.. Or if you still want to do that with one stringvalue, read about string.gsub