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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Are Module Scripts local or server-sided?

Previous Thread :: Next Thread 
Grandmaster_Askav is not online. Grandmaster_Askav
Joined: 06 Aug 2016
Total Posts: 662
29 Dec 2016 08:08 PM
Title. Do they run off the server or local. Because if they run off the server, whatever I get it to do will be fine with FilteringEnabled right?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Dec 2016 08:09 PM
From wherever you require them from.
Report Abuse
Grandmaster_Askav is not online. Grandmaster_Askav
Joined: 06 Aug 2016
Total Posts: 662
29 Dec 2016 08:11 PM
Oh.
Report Abuse
Grandmaster_Askav is not online. Grandmaster_Askav
Joined: 06 Aug 2016
Total Posts: 662
29 Dec 2016 08:12 PM
Wait no, thats perfect!
Report Abuse
candint1998 is not online. candint1998
Joined: 28 Feb 2010
Total Posts: 121
29 Dec 2016 08:16 PM
Can you require directly a module script that is in replicated storage using a local scirpt with filtering enabled?
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
29 Dec 2016 08:17 PM
it will run 1 time

if called locally, it runs only for that client and stores the last returned value of the modulescript for that client

if called on the server it will only run 1 time and store the last returned value of the modulescript
Report Abuse
candint1998 is not online. candint1998
Joined: 28 Feb 2010
Total Posts: 121
29 Dec 2016 08:19 PM
That means you can make a datastore in module?, I never knew what is module useful for if you can only access them 1 time.
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
29 Dec 2016 08:22 PM
you can make configurations and run things only 1 time, but they can run as long as they want to and be required whenever and wherever when using asset id meaning you could make a script that never stops running in a module script that runs only from wherever it is called and you could update it seamlessly by simply uploading a new module script

And they also allow you to get the same things without declaring them again every time such as extra math functions, data store functions, etc.
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
29 Dec 2016 08:23 PM
Also do keep in mind that by 1 time i mean it runs only 1 time from where it is called, either the client calling it, or the server
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Dec 2016 08:33 PM
"That means you can make a datastore in module"
If you require it from a regular script, sure why not
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
29 Dec 2016 08:48 PM
Thats exactly what i do here

https://forum.roblox.com/Forum/ShowPost.aspx?PostID=201595803


Report Abuse
Grandmaster_Askav is not online. Grandmaster_Askav
Joined: 06 Aug 2016
Total Posts: 662
29 Dec 2016 09:13 PM
Thanks btw.
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