RBXMods run on the RBXMod servers in a customized LuaJIT environment. This page summerizes some of the main differences. To quickly get started using RBXMods, check out the RBXMod library.
Added Globals
These globals are specific to RBXMods.
RBXMod
Adds methods to communicate to callersPage
Allows saving persistant data to files
Removed Globals
Like RBXLua, many globals needed to be removed from default Lua for security such as loadfile
and the debug
library. Roblox-specific globals also don't exist anymore and since RBXMods don't run on Roblox servers. Instead RBXMods should communicate with scripts running on the Roblox servers using the new RBXMod
library.
- From RBXLua
- All Roblox-specific globals
script
,workspace
,game
Instance
,Vector3
,UDim2
delay
,spawn
,tick
,wait
- and more
- From Lua
debug
,os
,io
librariescollegegarbage
,gcinfo
dofile
,load
,loadfile
require
- From LuaJIT
ffi
library