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
 

can you table.insert into a module script?

Previous Thread :: Next Thread 
Skyman772 is not online. Skyman772
Joined: 20 Mar 2012
Total Posts: 9305
16 Nov 2014 10:30 AM
so like for example:

table = require(script.ModuleScript)
table.insert(table,"swag")

and if inside the modulescript there was:

table = {}

return table

it would become:

table = {"swag"}

return table
Report Abuse
jammy101101 is not online. jammy101101
Joined: 26 Sep 2008
Total Posts: 5383
16 Nov 2014 10:36 AM
As far as I am aware, once you require() it is no longer as mutable, afaik (*afaik is a technical term!*)

Sorry bud! :'-(
Report Abuse
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
16 Nov 2014 10:42 AM
The require() method returns a copy of the table, not the table itself. So no.
Report Abuse
bidoof77 is not online. bidoof77
Joined: 27 Oct 2010
Total Posts: 15041
16 Nov 2014 10:43 AM
Yeah.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
16 Nov 2014 12:54 PM
NOT R34LLY, BUT TH3R3 4R3 SOM3 TH1NGS YOU C4N US3 TO OV3RR1D3 TH3 B3H4V1OUR OF WH3N 4 SCR1PT 1S R3QU1R3D
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