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 » Scripters
Home Search
 

Re: Embed Value into Table Name

Previous Thread :: Next Thread 
DCkid64 is not online. DCkid64
Joined: 23 Nov 2013
Total Posts: 90
17 Sep 2016 05:46 PM
I'm having some issues with table names and I can't embed a string or int value into a table name. My code is as follows: #code Exceptions{script.Parent.Parent.ID.Value} = ########### Is my syntax correct? If not, what is the correct syntax? #code ################
Report Abuse
SadisticNub is not online. SadisticNub
Joined: 05 Jan 2013
Total Posts: 4948
17 Sep 2016 05:47 PM
Try uploading to pastebin so your code doesn't get censored
Post the pastebin link on multiple lines so that isn't censored either lol
Report Abuse
DCkid64 is not online. DCkid64
Joined: 23 Nov 2013
Total Posts: 90
17 Sep 2016 05:47 PM
Sorry for hashtags, that's supposed to be {"plrname"}


Report Abuse
DCkid64 is not online. DCkid64
Joined: 23 Nov 2013
Total Posts: 90
17 Sep 2016 05:49 PM
#################################################################################################################################################################################################
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
17 Sep 2016 05:50 PM
tab[StringVal.Value] = true


Report Abuse
DCkid64 is not online. DCkid64
Joined: 23 Nov 2013
Total Posts: 90
17 Sep 2016 05:53 PM
I dont to change just one value inside the table, I want the table name to be Exceptions23 if ID.Value is 23


Report Abuse
L2000 is not online. L2000
Joined: 03 Apr 2008
Total Posts: 77448
17 Sep 2016 05:57 PM
You can't manually set variable names unless you store them in a table of some sort.
Well, you can, using getfenv(), but that just gives you a table of all variables in your script.

The best thing to do is make a general table and store it in there - like variables[Exceptions23]
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
17 Sep 2016 06:10 PM
tab['Exceptions'..id.Value] = true




Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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