Skip to content

RedBigz/BloxPack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BloxPack

BloxPack is a tool for Roblox which packs a collection of lua files into a simple script.

Installing in your Roblox Game

  1. Create a ModuleScript in ReplicatedStorage named "BloxPack"

Step 1

  1. Paste the code inside bloxpack.lua into the script.

Step 2

Syntax of BloxPack

Directory Tree

Here is the directory tree of a BloxPack Folder:

.
└── example_folder/
    ├── init.lua
    └── <insert other scripts here>

BloxPack folders must contain an init.lua file.

Export & Import

To import a module, you would type the following into your script:

local module = require("module");

To export a variable, you would type the following into your script:

--@Export variable

To export a variable as the default, you would type the following into your script:

--@ExportDefault variable

Compiling a BloxPack Folder

Type the following into your command line:

bloxpack <DIRECTORY> -o <OUTPUT FILE>

An example:

bloxpack ./examples/helloworld -o ./helloworld.lua

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published