Miscellaneous & scheduler
run_secure
function run_secure(text: string)Runs protected code. text must be a base64-encoded protected payload — passing plain Lua source raises Invalid base64 encoded data - Size not divisible by 4. Since the protection tooling isn't public, this function isn't usable with ordinary scripts.
Code protection is not available to the public.
Set Fast Flag
function setfflag(FFlag: string, value: string)Intended to set the fast flag FFlag to value. Marked incomplete (below) — setting a flag has no effect that getfflag can read back.
This function is not complete.
Get Fast Flag
function getfflag(FFlag: string): numberIntended to read the fast flag FFlag, but currently a stub — it returns 0 for every flag, real or not.
This function is not complete.
require
function require(path: string): tableLoads a .lua / .luau module by path. The extension is required and validated — require("mod") raises File has no extension, and any other extension raises Unsupported file extension: .x.
requireresolves from its own module root, separate from thewritefile/readfileworkspace — a file thatisfileconfirms exists is still reportedModule file does not exist, so you can'twritefilea module andrequireit.
wait
function wait(time: number)Yields the current thread for time seconds. Returns nothing — unlike Roblox's wait, which returns the elapsed time.
spawn
function spawn(target: function): nilRuns target on a new thread; its body executes right away.
task.spawn
function task.spawn(target: function): nilRuns target immediately on a new thread (synchronously — code after the call waits until target yields).
task.spawndoes not forward extra arguments totarget; use a closure:task.spawn(function() myFunc(arg) end).
task.defer
function task.defer(target: function): nilIntended to defer target to the next cycle, but in the current build the callback never runs (a no-op). Use task.spawn instead.
task.delay
function task.delay(time: number, target: function): nilSchedules target after time seconds. This was verified in Matcha 1.0.0 by scheduling a callback, waiting 0.05 seconds, and observing the callback run.
task.deferremains a no-op in the tested build; this correction applies only totask.delay.
task.wait
function task.wait(time: number?)Yields the current thread for time seconds, or until the next frame if time is omitted. Returns nothing — unlike Roblox's task.wait, which returns the elapsed time.