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: Tables Help

Previous Thread :: Next Thread 
kylerzong is not online. kylerzong
Joined: 06 Aug 2011
Total Posts: 659
13 Feb 2017 06:33 PM
if I have b = ############### and I want the NAME of b instead of the table itself how could I get it Example: print(b) -- table(DGJSGJSDHHD) <--- instead of table I need "b"
Report Abuse
kylerzong is not online. kylerzong
Joined: 06 Aug 2011
Total Posts: 659
13 Feb 2017 06:34 PM
b = { z = " h I " , x = " b y e " }
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
13 Feb 2017 06:47 PM
print(table.concat(b,' '))


Report Abuse
kylerzong is not online. kylerzong
Joined: 06 Aug 2011
Total Posts: 659
13 Feb 2017 06:50 PM
that prints nothing
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
13 Feb 2017 06:50 PM
b has no name. its literally just a table


Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
13 Feb 2017 06:51 PM
Tables don't have names.

print("b")
Report Abuse
kylerzong is not online. kylerzong
Joined: 06 Aug 2011
Total Posts: 659
13 Feb 2017 06:58 PM
"table: 27A37BA8"
Report Abuse
kylerzong is not online. kylerzong
Joined: 06 Aug 2011
Total Posts: 659
13 Feb 2017 07:00 PM
e = {b = { z = " h I " , x = " b y e " } }

for i,v in pairs(e) do
print(tostring(i))
end
this works but is there a simpler way?
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
13 Feb 2017 07:05 PM
Remove the tostring.
Report Abuse
kylerzong is not online. kylerzong
Joined: 06 Aug 2011
Total Posts: 659
13 Feb 2017 07:28 PM
an even simpler way?
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
13 Feb 2017 07:34 PM
As in?

What is it you want to do?
Report Abuse
kylerzong is not online. kylerzong
Joined: 06 Aug 2011
Total Posts: 659
13 Feb 2017 07:59 PM
nvm...
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