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: getfenv()??

Previous Thread :: Next Thread 
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
22 Feb 2014 02:05 PM
How can I check how many values are stored in a _G ?
Report Abuse
Soundcrusher is not online. Soundcrusher
Joined: 25 Aug 2011
Total Posts: 559
22 Feb 2014 02:19 PM
Depends if it's a table:

_G.ValueTable = {"Heyo","lol","Move along sir"}
-- 3 Values

print(#_G.ValueTable)
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
22 Feb 2014 02:20 PM
Oh...


How would I insert Stuff into a _G table?

talbe.insert(_G.Tablename,wahtever)


??!?!?!?!?
Report Abuse
Soundcrusher is not online. Soundcrusher
Joined: 25 Aug 2011
Total Posts: 559
22 Feb 2014 02:21 PM
Tablehere[#Tablehere + 1] = "Valuehere"
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
22 Feb 2014 02:21 PM
Like you do with a normal table, I assume.

#nerdsunited
Report Abuse
Soundcrusher is not online. Soundcrusher
Joined: 25 Aug 2011
Total Posts: 559
22 Feb 2014 02:23 PM
He means, the thing you need to do when you want to add a player's name for example without editing the code. So, yeah, what I just said is just one method to add values.
Report Abuse
Soundcrusher is not online. Soundcrusher
Joined: 25 Aug 2011
Total Posts: 559
22 Feb 2014 02:31 PM
Ofcourse you need the full value in it:

_G.ValueTable you know,

And, in order to get the Data you stored in the table:
ACCES IT IN ORDER YOU ADDED STUFF TO IT.
For example:
You added a value (first in the row) named "Derpyderp".
then you do this again, with another value called "JohnShed"

_G.ValueTable[2] if you want the second value Etc.
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