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: Will roblox every have a import function?

Previous Thread :: Next Thread 
Avspark is online. Avspark
Joined: 12 Aug 2015
Total Posts: 1975
19 Nov 2017 07:54 AM
I feel like user made library's would be nice to add to code.
Just a little thought I had after coding in some python.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
19 Nov 2017 07:59 AM
Yep, ModuleScripts.

local lib = require(game.ServerStorage.ExampleModule)
lib.TestFunc()
lib.lol = 100.3

This has tutorials and examples at the bottom too.
http://wiki.roblox.com/index.php?title=API:Class/ModuleScript


Report Abuse
TaaRt is online. TaaRt
Joined: 26 Apr 2009
Total Posts: 5039
19 Nov 2017 08:40 AM
Just to add on to that; Lua has had the ability to require any other Lua script in a similar way Python does (although ROBLOX limited that to modulescripts)
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