generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Converting String to Array?

Previous Thread :: Next Thread 
cowboy123134 is not online. cowboy123134
Joined: 20 Jun 2009
Total Posts: 21682
19 Jun 2013 10:55 AM
If I hold an array in a StringValue object, will I be able to convert that into an array within my script?

#TeamIllumina
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
19 Jun 2013 10:59 AM
http://wiki.roblox.com/index.php/Function_Dump/Core_Functions#loadstring
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
19 Jun 2013 11:00 AM
If I am not mistaken, you should be able to use that for this.
Report Abuse
cowboy123134 is not online. cowboy123134
Joined: 20 Jun 2009
Total Posts: 21682
19 Jun 2013 03:38 PM
I tried that, and didnt seem to work.

I had this in the value on the StringValue object:

{"lol","hi","wat"}

And it didnt work
Report Abuse
ALERIFICALNEUMORAITI is not online. ALERIFICALNEUMORAITI
Joined: 21 Nov 2010
Total Posts: 302
19 Jun 2013 03:41 PM
y u need dis
Report Abuse
Lukekneenew is not online. Lukekneenew
Joined: 20 Oct 2009
Total Posts: 746
19 Jun 2013 03:41 PM
loadstring("local t = "..script.Parent.StringValue.Value)()
print(table.concat(t,' '))

Dat work?
Report Abuse
cowboy123134 is not online. cowboy123134
Joined: 20 Jun 2009
Total Posts: 21682
19 Jun 2013 03:57 PM
@Luke, no. This is the error message

Workspace.Script:6: bad argument #1 to 'concat' (table expected, got nil)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image