Running
How to run the client against live servers.
Live run
Joining a live server needs your own Roblox account cookie. Export it once - never commit it, and never share it:
export RBX_ROBLOSECURITY='...' # the .ROBLOSECURITY cookie for your account
Then:
./build/client/roblox --place-id 1818 --roblosecurity "$RBX_ROBLOSECURITY"
./build/client/roblox --connection-type=RakNet --place-id 1818 \
--roblosecurity "$RBX_ROBLOSECURITY" --seconds 30 # bounded run
A live run stays connected until Ctrl+C (SIGINT/SIGTERM); the summary is
printed on exit either way. --seconds N bounds it to N seconds for scripted
and soak runs (--seconds 0, the default, means until interrupted).
Both live transports share the same renderer and Engine world: headful is
the default (SDL3 window, third-person/orbit camera), --headless runs the
identical world with no GL, and --shot PATH saves one frame once replication
has been applied. RakNet feeds the viewer from the same LiveRuntime path
RbxTransport uses; its socket is drained non-blocking every frame so the
~1 MB join snapshot is not dropped while a frame is drawn.
On the wire, RakNet sends the upstream 0xA6 input stream the native client
sends (unreliable): the four route frames, then the count-4 steady state at
~13 Hz. Driven movement is not solved yet - those route frames carry
nActions = 0. A local Character does arrive on 1818, and on some 189707
sessions, once the RCC calls LoadCharacter, but 189707 is not deterministic:
two of six post-parser joins (12-30 s) linked ChatGGPT while the other four
reached the world without a Character. --input=control --slots=… sends an
explicit ControlState probe, but the slot-to-movement mapping is not
recovered, so it is never presented as a "forward" key.
With no --connection-type, a binary that contains both transports probes
RbxTransport for 20 s (the path that is natively closest but currently ends
in a server drain) and falls back to RakNet, which is the transport that
completes a join today. The default build contains RakNet only, so no probe
runs and RakNet is used directly. RakNet-only options (--seconds,
--90-template, --skip-join, …) skip the probe automatically. A forced
transport is exactly that: no fallback.
(Runs until interrupted - bound it with timeout 45s …. --place-id is
always required (the server rejects job-only joins with status 12);
--job-id optionally pins one running instance of that place. The RakNet
join follows the native's post-handshake sequence (0x90 → 0x92 → 0x8A →
0x8F → the 0x9B join step) and answers the server's 0x9B challenge in
process. Its body templates live under run/ and are resolved against the
CWD, the binary's directory and the repo root, so ./roblox works from
build/client as well as the repo root; set BOBLOX_DATA_DIR to point at a
different fixture directory. Standalone builds land in client/build/
instead - see above.)
On the RbxTransport path roblox opens an SDL3 window immediately and
renders the live Engine world as replication arrives; --headless disables
GL and runs the same DataModel/scheduler with no window. The RakNet path uses
the same viewer by default and logs the handshake/join stages alongside it.
Parts
render with their replicated Color/Transparency/Shape (Ball, Block,
Cylinder; Wedge/CornerWedge are approximated as blocks), and the camera
frames the 90th-percentile playable reach so skybox outliers cannot shrink
the map to specks. --shot PATH captures the live window once the world is
visible. The live path
consumes 0x97 JoinData, snapshot 0x83/0x16 batches, and streaming
0x83 items (0x02 spawns, 0x03 props, 0x0B/0x25 entry batches,
0x0D records, 0x07 events, 0x78 script bulks). RBX_REPLAY=file
Instance member lookup is the native one: declared properties/methods/events
first, then children by name (workspace.Baseplate, gui.Frame). The
DataModel carries every engine service as a real child (the replicated service
when the server sends one, the Engine singleton otherwise), so
game.Players == game:GetService("Players") and game.RunService exist even
though the server never replicates RunService. game.Workspace, workspace,
lighting and game.RunService are live views over those children, not
stored nulls. Script bytecode arrives as 0x78 content-addressed bulks keyed
by the script's 16-byte Source hash; the client keeps that hash (and both
8-byte halves) from the snapshot, so a bulk is attributed to its script even
when the spawn item came much earlier in the stream. A native-client capture
shows no script-content request on the wire at all: the RCC pushes the bulks,
so missing script bodies mean parse gaps, not a missing client request.
RBX_REPLAY=file
applies a captured chan1 stream through the same path without a join;
combine it with --shot PATH to render a capture offline
(screenshots/replay_view.png is that path on run/repl_1818.bin).
Success looks like challenge=yes answered=yes peer=yes resets=0 followed by
replication traffic and == live == world=yes on RbxTransport. On RakNet it
is 0x9B answer … (solved in 1ms), then 0x97, then
world spawned=… instances=… engine=on and live_frames=…. As a control: a
deliberately wrong answer gets exactly one challenge rejected (server drains
after ~63 KB); a correct one streams indefinitely.
Note: back-to-back runs on the same account can get a transient early
ERR_DRAINING before any challenge arrives (the previous session's kick /
server-side state - see PROTOCOL.md). Wait ~20s and retry; it is not a
client-side fault.
Proxy
The join is HTTPS and the game transport is UDP, so the two proxy differently.
# HTTPS join through a residential SOCKS5/HTTP proxy (DNS resolved at the proxy):
./build/client/roblox --connection-type=RakNet --place-id 1818 \
--roblosecurity "$RBX_ROBLOSECURITY" \
--proxy 'socks5h://user:pass@host:1080'
# or from the environment (RBX_PROXY, ALL_PROXY or HTTPS_PROXY):
RBX_PROXY='socks5h://user:pass@host:1080' ./build/client/roblox ...
--proxy accepts socks5h://, socks5:// and http:// URLs (the scheme is
optional; a bare host:port defaults to socks5h). Every join call -
universes/v1, v1/join-game, the joinScript fetch and player hydration -
goes through it, which is the part a flagged datacenter address hurts.
Roblox's game transport is UDP. An HTTP proxy cannot carry it, and a
SOCKS5 proxy only can when it implements UDP ASSOCIATE (RFC 1928). The
--proxy-udp option picks the behavior:
| Mode | Behaviour |
|---|---|
auto (default) |
tunnel the game's UDP when the proxy supports UDP ASSOCIATE; otherwise log it and use the direct path |
off |
never tunnel UDP (HTTPS only) |
require |
abort the run if the proxy refuses UDP ASSOCIATE |
FlashProxy's standard Residential port 1080 is TCP-only, so with that plan
auto proxies the join while RakNet still leaves from the host. Use a
UDP-capable endpoint (FlashProxy advertises SOCKS5 UDP on its Shared ISP, IPv6
and Datacenter ports) with --proxy-udp require to tunnel gameplay as well.
How the 0x9B challenge is solved
server blob
-> XOR-decode + xxhash32 check + zstd (tools/challenge_blob.py, C++ twin in client/)
-> wire bytecode -> opcode standardize (tools/standardize_wire.py, C++ twin in client/)
-> run in Roblox-flavored Luau sandbox (rbx_runtime: exact PCG Random, game/UserSettings/…)
-> answer u32 (~1 ms in-process; the server's window is ~16 ms)
The Python solver (py/solve9b.py) is the readable reference; the C++ path
exists because the server only waits ~16 ms for the answer.