Miscellaneous¶
Script environment¶
Identify executor¶
Returns a string to identify what executor is being used. In this case, it's "Celery"
Get ROBLOX environment¶
Returns the ROBLOX script environment.
Get global environment¶
Identical to getfenv()
.
There is no way to implement this in Celery because ROBLOX automatically sandboxes and protects each script environment for us -- so, there is no way of connecting the environments for Celery scripts, because of how it executes them.
Get Lua registry¶
Returns a table containing all elements stored in lua registry.
Get identity¶
Returns the context level of execution that the script is running with, most likely 6
.
Set identity¶
Sets the current context level to identity
.
Tables¶
Is read only¶
Returns whether the table t
is read only or not.
Set read only¶
Sets whether the table t
is read only or not.
Make read only¶
Sets table t
to read only.
Equal to doing setreadonly(t, true)
.
Returns table t
.
Make writeable¶
Makes the table t
write-able (not read only).
Equal to doing setreadonly(t, false)
.
Functions¶
Is C closure¶
Returns true
is f
is a C closure and not a Lua function.
New C closure¶
Returns a C closure function which invokes the Lua function f
Hook function¶
Swaps the internal function of a
with b
, so every time a
is called it will call b
instead.
Returns the old a
function.
Get namecall method¶
Returns the current namecall method used by __namecall
, as a string.
Set namecall method¶
Sets the current namecall method used by __namecall
to method
.
Get raw metatable¶
Returns the raw metatable of t
-- basically just bypasses the __metatable
check for it.
Instances¶
Scripts¶
Get script bytecode¶
Returns the LuaU bytecode contained in the localscript
script.
Warning
ModuleScripts are not supported yet
Dissasemble bytecode¶
Translates a script's bytecode
into a readable, disassembled output.
Decompile script¶
Decompiles a localscript
's bytecode into readable lua, as close to the original script as possible.
Fire click detector¶
Fires the clickdetector
instance -- calling any signals connected to it.
Fire touch interest¶
Fires toTouch
's TouchInterest.
Note
The toTouch
argument must have a child with class TouchTransmitter
in order for this function to work.
Get hidden properties¶
Returns hidden lua properties associated with instance
.
Get hidden property¶
Gets the hidden property property
from instance
.
Set hidden property¶
Sets the hidden property property
of instance to value
.
Client¶
Get simulation radius¶
Returns your client's simulation radius.
Set simulation radius¶
Sets your client's simulation radius to value
.