Globals (Pilot-style)
Injected into the microscripter worker to resemble Roblox Waste of Space Pilot.lua. For the real Luau API see the Pilot.lua globals page.
Runtime
task.wait(seconds)
Returns a Promise; use await task.wait(0.5).
JSONEncode / JSONDecode
Aliases for JSON.stringify and JSON.parse.
GetCPUTime()
Seconds since script run start (performance.now).
logError(message, level?)
Logs without throwing.
SandboxID / SandboxRunID
Microscripter part id and per-run random id.
Parts API
GetPartFromPort(port, partType)
1-based index among connected parts of that Pilot type, or match by GUID object. Returns wrapped Part with methods (Disk, Modem, Screen, …).
GetPartsFromPort(_port, partType)
Array of all matches.
GetPort(n)
Stub port object — Connect logs only (no antenna graph).
TriggerPort(n)
Stub; logs and noop RPC.
Beep(pitch?)
Log only; no audio oscillator in worker.
Source
Implemented in pilot.js (getWorkerPilotRuntimeSource()).