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: Can data be stored in a module script?

Previous Thread :: Next Thread 
LeRiceFarmer is not online. LeRiceFarmer
Joined: 08 Jan 2012
Total Posts: 2583
06 Aug 2017 03:20 PM
Because I want to be able to access the data from a different script.


#code local siggy = game:GetService("SiggyService")
Report Abuse
9271715 is not online. 9271715
Joined: 24 Jun 2013
Total Posts: 3
06 Aug 2017 03:22 PM
IDIOT JUST PUT IN YOUR SCRIPT WITH THE M&MS AT WALLMART

THATS WHAT I DID :p
Report Abuse
LeRiceFarmer is not online. LeRiceFarmer
Joined: 08 Jan 2012
Total Posts: 2583
06 Aug 2017 03:23 PM
Please get out.


#code local siggy = game:GetService("SiggyService")
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
06 Aug 2017 03:26 PM
That was as creative as your username, @9271715

@OP Yes, but keep in mind scope that modules return separate instances for the server and clients
Report Abuse
LeRiceFarmer is not online. LeRiceFarmer
Joined: 08 Jan 2012
Total Posts: 2583
06 Aug 2017 03:28 PM
Okay, thx


#code local siggy = game:GetService("SiggyService")
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
06 Aug 2017 03:29 PM
Modules are just scripts that return something.

You can think of them as cached global functions.
Report Abuse
LeRiceFarmer is not online. LeRiceFarmer
Joined: 08 Jan 2012
Total Posts: 2583
06 Aug 2017 03:29 PM
I might just keep the actual data inside the script but the data store scripting will be in a regular script and I will just require the module


#code local siggy = game:GetService("SiggyService")
Report Abuse
9271715 is not online. 9271715
Joined: 24 Jun 2013
Total Posts: 3
06 Aug 2017 03:48 PM
i love popcorn mom # ################# ################
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