
Serotonin Lua API Reference
Honest, complete, up-to-date documentation for the Serotonin Lua sandbox. Every signature roundtripped against the live runtime.
What is in here
Live-verified
Every signature confirmed by `pcall` introspection on a real Serotonin sandbox. No hearsay, no stale changelog.
npx-installable
Drop-in stdio MCP server published as `mcp-serotonin-docs`. One-click VSCode install, one-line Codex install.
Crashers documented
Every native crasher we hit is on the page that exposes it: `audio.PlaySound` non-WAV, `cheat.LoadString`, `_G`, undocumented LocalPlayer fields.
Bilingual
Full English and Russian translations side by side, kept in sync. Function names and error strings stay verbatim.
Quick start
Drop this file into C:\Serotonin\scripts\ and load it from the Scripting tab.
cheat.register("onPaint", function()
draw.TextOutlined("Hello, Serotonin!", 20, 20,
Color3.fromRGB(255, 255, 255), "Verdana")
end)
14 cheat-side libraries (utility, memory, entity, game, cheat, bit, file, audio, mouse, keyboard, http, websocket, draw, ui) plus 5 userdata types (Instance, Part, Player, Vector3, Color3). Build version-390ba09e7e944154, runtime is LuaJIT 2.0.3 implementing Lua 5.1. Pages publish only after every signature is roundtripped against the live runtime via verify_all_api.lua.