Builds directly into the build output folder of runluau for fast testing.
Simply put them in the plugins folder and they will work. Plugins can do anything to the environment, but all of the plugins here register a global library to access their functions.
A list of the functions the plugins here provide can be found in the runluau env.d.luau file.
- Copy
runluau-template, and rename it. - Rename
runluau-template.vcxproj,runluau-template.vcxproj.filters, andrunluau-template.vcxproj.useraccordingly to the name you chose. - Right click the runluau-plugins solution and click
Add -> Existing Project.... - Pick the
.vcxprojof the new plugin you made. - Edit
lib.cppto do whatever you want.
- Adds a colored print output (by replacing the
printglobal) which formats tables and functions - Adds global
tostringex, which is tostring but with similar table and function support - Adds
warn, which is print except it's all yellow
- Adds the
fsglobal for filesystem management - If the
osunsafeplugin is loaded, any files can be accessed. If not, all operations are locked in a sandbox folder
- Adds the
gfxglobal for pixel-by-pixel rendering - Start by calling
gfx.create_window. It will return a frame buffer as a Luaubuffer, then you can simply write to it to draw pixels (32 bit integers, 0xRRGGBB, last byte is ignored) - Y is inverted, so coordinates 0, 0 are for the bottom left
- Use
gfx.get_window_eventsto get key presses and mouse scrolls. Any operation on a window only requires you to pass in its frame buffer as identification
- Adds the
luauglobal for calling some useful Luau C++ API functions - Supports compiling and parsing Luau source code with various settings
- Parser optionally parses declaration syntax
- Will be used for http requests and websockets... but no work has started yet for some reason
- Adds less sandboxed functions to the base
oslibrary - Includes clipboard functions, environment variables, and
os.execute
- Adds the
taskglobal, implementing the Roblox task library
If you want to keep Luau sandboxed, take note of which plugins here are safe or unsafe. Safe:
- betterprint
- luau
- task Caution:
- graphics (might have extremely rare bugs)
- filesystem (only unsafe if osunsafe is loaded) Unsafe:
- net
- osunsafe