# Replication

> How the Roblox server describes its world to a client, and how Rove decodes, stores and serves it to Luau. With an explorer for every packet, item and property type.
> Rove documentation: https://docs.rove.wtf/replication

A Roblox server never sends a "map". It sends a stream of small edits to a tree of instances: create this Part under that Model, set its CFrame, fire this RemoteEvent, delete that Tool. The client applies them in order. Rove decodes the same stream and keeps the same tree, so a script asking for `workspace.Map.Spawn.Position` gets the answer the real client would.

## Be the server

The quickest way to understand replication is to cause some. Below are two copies of a small world: the server's, which you control, and Rove's. When the widget scrolls into view Rove joins, and the world arrives the way a real one does. After that, every change you make on the left becomes the item a Roblox server would send, with the same byte layout. It crosses the wire after the delay you choose, and Rove decodes it on the right. Rove's copy never looks at the server's; it only parses bytes.

(Interactive on the web page: two copies of a small world, the server's and Rove's. Each change on the server side is encoded as the real replication item, sent after an adjustable delay and decoded into Rove's copy. Example: moving a part sends a Change Property item, `83 03 <Guid> <property id u16> 00 <x f32> <y f32> <z f32> <orientation u8> 00`; a new part sends a New Instance item with the class id, its properties and the parent Guid.)

Things to try: drag the crate and watch only the `x` and `z` floats change. Rotate it and one byte changes. Rename it and the item grows by the length of the name. Turn latency up and the two worlds disagree for exactly that long.

The class and property numbers (Part is `156`, CFrame is `282`) belong to this pretend server. A real one sends its own table first, which is the next section.

## The stream

Three top-level packets carry almost all of it:

| Packet | What's in it |
|---|---|
| `129` globals | The top-level services (Workspace, Players, ReplicatedStorage …) and this client's scope. Always first. |
| `131` `ID_DATA` | A list of replication items: new instances, property changes, events, deletions, streaming regions. Ends with item `0`. |
| `161` `ID_ISR` | Instance state: compact, frequently changing physics (positions, velocities) for many instances at once. |

Before any of that, `151` delivers the **schema**: a table that numbers every class, property, event and enum the server knows about. Item bytes refer to classes and properties by those numbers, so the schema has to arrive first and Rove decodes everything through it. A newer Roblox version can add properties without breaking Rove, because their numbers come from the server.

## Instances and references

Every instance has a `Guid`: a scope (`varuint32`) and an index (`u32`). Scope `0` means null. References between instances (a part's parent, an `ObjectValue`'s value) are Guids, and the server may refer to an instance before it has sent it, so Rove keeps unresolved references and links them when the target arrives.

A **new instance** item (`2`) carries the Guid, the class number, two loops of properties (references and strings first, then everything else), and finally the parent. A **property change** item (`3`) carries the Guid, the property number and one value. Deletions come as single (`1`) or batched (`27`) items.

### Initial join data

The bulk of the world arrives in **join data** items (`11` and `22`): Zstandard-compressed batches of whole instances. Item `22` splits them into subtypes: shared strings first, then instance batches with skip ranges, then net assets. Shared and protected strings (`46`, `47`) are sent once as a 16-byte Blake2b-128 key plus the bytes, then referenced by key, which is how a game's 2,500 scripts don't cost 2,500 copies.

When the server's done, a tag item (`16`) says so: `12` for top replication complete, `13` for join data complete. Scripts start at `13`.

## Explore it

Every packet, item, property type and attribute type Rove decodes, with its exact byte layout. Filter by name or number; select a row for its layout.

Every packet, replication item, property type and attribute type Rove decodes, with its byte layout. These tables are generated from the IDA cross-check notes.

### Top-level packets

| Id | Shuffled id | Name | Format |
|---|---|---|---|
| 14 (0x0E) | 14 | RakNet PingProbe A | u8(0x0E) + u32 (4B) |
| 15 (0x0F) | 15 | RakNet PingProbe B | u8(0x0F) + u32 (4B) |
| 16 (0x10) | 16 | ID_CONNECTION_REQUEST_ACCEPTED | Connection accepted timing hook |
| 21 (0x15) | 21 | ID_DISCONNECTION_NOTIFICATION | u8(0x15) + optional i32 reason_code (257..=321) + optional bounded text |
| 22 (0x16) | 22 | ID_CONNECTION_LOST | u8(0x16) (+ optional i32 reason_code) |
| 27 (0x1B) | 27 | ID_TIMESTAMP | u8(0x1B) + u64 remote_send_ms + u64 local_echo_ms + u8 inner_id (or u8 inner_id + u64 local_echo_ms when rep[16123]&2 != 0) + inner payload |
| 129 (0x81) | — | ID_TOP_REPLICATION | Top-container service instances + local peer scope (SessionCore::ingest) |
| 130 (0x82) | — | Legacy ignored | No-op (return 0) |
| 131 (0x83) | 181 (0xB5) | ID_DATA | u8(0x83 or 0xB5) + ID_DATA item opcodes (1..=43) terminated by u8(0x00) |
| 132 (0x84) | 176 (0xB0) | ID_REQUEST_MARKER | u8(0x84 or 0xB0) + u32 marker_id (echoed as MarkerItem 4 in ID_DATA) |
| 133 (0x85) | 231 (0xE7) | ID_PHYSICS | u8(0x85 or 0xE7) + MechanismItem root stream terminated by 0x00 Guid |
| 134 (0x86) | 189 (0xBD) | ID_TOUCHES (TouchItemS2) | u8(0x86 or 0xBD) + (Guid part_a, Guid part_b, u8 state <= 4) loop until part_a == Null (0x00) |
| 135 (0x87) | — | ID_CHAT_ALL | u8(0x87) + varuint32 scope + i32 idx + u32_string msg + up to 2 x bool |
| 136 (0x88) | — | ID_CHAT_TEAM | u8(0x88) + varuint32 scope + i32 idx + u32_string msg + up to 2 x bool |
| 137 (0x89) | — | Legacy ignored | No-op (return 0) |
| 139 (0x8B) | — | ID_CHAT_GAME_MESSAGE | u8(0x8B) + u32_string msg + up to 2 x bool |
| 140 (0x8C) | — | ID_CHAT_WHISPER | u8(0x8C) + varuint32 scope + i32 idx + Guid target + u32_string msg + up to 2 x bool |
| 141 (0x8D) | — | ID_CLUSTER (Terrain voxels) | u8(0x8D) + Guid terrain + (if Workspace.StreamingEnabled: u8 sub_id < 6 [+ i32 if sub_id == 5]) + readCompressedBitStream |
| 142 (0x8E) | — | ID_PROTOCOL_MISMATCH | u8(0x8E) -> disconnect reason 259 |
| 144 (0x90) | — | ID_SUBMIT_TICKET (C->S) | Client join authentication/ticket submission |
| 145 (0x91) | — | Legacy ignored | No-op (return 0) |
| 146 (0x92) | — | ID_PLACEID_VERIFICATION | u8(0x92) + bool verified (true -> verified; false -> disconnect reason 263) |
| 147 (0x93) | — | ID_PROTOCOL_SYNC (FFlags) | u8(0x93) + u8 skipped + u16 count + count * (u16_str key, u16_str val) (carries DebugAdaptivePVCompressor) |
| 151 (0x97) | — | ID_SCHEMA_SYNC | u8(0x97) + readCompressedBitStream network schema table |
| 152 (0x98) | 250 (0xFA) | ID_KICK (Player::Kick) | u8(0x98 or 0xFA) + u32_string message + u32_string extra_json -> disconnect reason 267 |
| 154 (0x9A) | 164 (0xA4) | ID_MICROPROFILER_DUMP | u8(0x9A) + i32 + i32 + readCompressedBitStream |
| 155 (0x9B) | 207 (0xCF) | Challenge packet | u8(0x9B or 0xCF) + u32 id1 + u32 id2 + u32_string payload |
| 161 (0xA1) | 161 | ID_ISR | u8(0xA1) + u32 step + u32 group_count + i32 default_scope + LOD groups |
| 162..=164 | 203..=205 | Channel control | u8(id) + channel framing bytes |
| 165 (0xA5) | 165 | ID_LARGE_REPLICATOR | u8(0xA5) + u8 sub_type (7 = ack, else chunk delivery) |
| 166 (0xA6) | 191 (0xBF) | ID_INPUT (AuroraInput) | u8(0xA6 or 0xBF) + AuroraInput frame data |

### `ID_DATA` replication items

| Id | Name | Direction | Layout after the opcode byte |
|---|---|---|---|
| 0 | End Item | Both | 0B — terminates ID_DATA item loop |
| 1 | Delete Items | Both | Guid target |
| 2 | New Items | Both | Guid instance + u16 class_id + PropLoop(group=2: {3,6,28,33,34,47,69}, compressed=true) + PropLoop(group=1: others, compressed=true) + ContextTrail + Guid parent (+ optional u8 intent_flags) |
| 3 | Change Property Items | Both | Guid instance + u16 prop_id + VersionHeader (S->C sub_104DBAE50: 1B bool reset only; C->S: bool has_ver [+ zigzag32]) + (Guid parent or PropertyValue(compressed=true) + ContextTrail) |
| 4 | Marker Items | Both | u32 marker_id (4B LE) |
| 5 | Other Items 1 (PingItem) | Both | u8 flags (<=0x1F) + u64 ts + u32 send_stats + (6 x u32 if flags&1, else 3 x f32 if flags&2) + 2 x u32 + u8 unreliable + (u32 if flags&4) + (f32 if flags&0x10) + (u8 + tracer if flags&8) |
| 6 | Other Items 2 (PingBackItem) | Both | Identical layout to 5 |
| 7 | Event Invocation Items | Both | Guid target + u16 event_id + schema.events[event_id] args (compressed=true) + ContextTrail |
| 8 | Request Character Items | C->S | u32 spawn_flags + u32_string avatar_token + Guid player |
| 9 | Other Items 3 (PmcConfig / Rocky) | Both | S->C: u8 sub_type == 4 (1B); C->S: u8 sub_type == 0 + 5 x u32 (21B) |
| 10 | CFrame Ack Items | C->S | Guid instance + u16 prop_id + bool has_ver (+ zigzag32 if true) + i32 ack_step |
| 11 | Join Data Items | S->C | u32 count; if > 0: readCompressedBitStream of count * JoinObject(compressed=false) + ContextTrail |
| 12 | Delete Pure Object Items | C->S | Guid target + varuint32 token |
| 13 | Stream Data Items | S->C | JoinDataItem (11) body + do { u8 hdr; code = hdr & 0xF7: 0 => StreamRegion::Id, 1 => +Y, 2 => +Z, 3 => +X, 4 => (INT32_MAX)^3 } while (hdr & 0x08 != 0) |
| 14 | Region Removal Items | C->S | StreamRegion::Id + u32 gc_token + u32 guid_count + u8 comp_flags + inline/Zstd guid_count * (Guid [+ varuint32_str(16) if has_hash]) |
| 15 | Instance Removal Items | C->S | Guid instance |
| 16 | Tag Items | S->C | i32 tag_id (12 = TopReplicationCompleted, 13 = JoinDataCompleted) |
| 17 | Stats Items | S->C | i32 version: v9+ 2xf32; v8+ bool [+ zstd u32_str]; v7+ i32 + zstd u32_str; v6+ f64 total + **4** × (i32 count + count*(u32_str + f64)) (developerTags, internalCategories, placeScriptMemoryCategories, coreScriptMemoryCategories); v3+ bool [+ 6xi32]; jobs loop; scripts loop; 5xf32 |
| 18 | Other Items 4 | C->S | u8 n: if 0xFF skip 4 * u8 + 4B; else skip 4 * n + 4B + 3 x u64 |
| 19 | Resolve Atomic Tree Items | S->C | Guid root_instance + Guid parent_instance |
| 20 | Streaming Info Items | S->C | StreamRegion::Id + i32 radius + u32 pause_version |
| 21 | Change Attribute Items | Both | Guid instance + varuint32_str attr_name (max 100) + varuint32_str value_blob ([0x01] = delete) |
| 22 | Join Data Items V2 | S->C | u8 subtype + readCompressedBitStream: 1 = SharedString stream; 2..=4 = u32 count + varuint32 skips + skip ranges + JoinObjects; 5 = NetAssets stream |
| 23 | Stream Terrain Item | — | Outbound helper only (readItem throws inside ID_DATA) |
| 24 | Stream Prefetch Info Items | S->C | StreamRegion::Id + i32 val0 + i32 val1 |
| 25 | Stream Prefetch Request Items | Both | 3 x f32 center + f64 radius + i32 priority_or_timeout (24B) |
| 26 | Stream Replication Focus Items | Both | u32 focus_id + StreamRegion::Id + i32 max_radius + f32 opt_radius + bool + bool + u32 step_id |
| 27 | Destroy Items | S->C | u32 count + count * Guid (DeserializedDestroyInstanceItem) |
| 28 | Client Quota Stream Update Items | C->S | u8 quota_flags + i32 memory_level + u16 max_regions |
| 29 | Stream Model Persistent Player Add | S->C | Guid model |
| 30 | Stream Model Persistent Player Remove | S->C | Guid model |
| 31 | Client QoS Items | S->C | u8 qos_type + u8 qos_val + (u32_string iff qos_type == 1 \|\| qos_type == 2) |
| 32 | Change Inst Item (Guacamole) | S->C | u32 id + u32 byte_len + byte_len raw bytes |
| 33 | Change ObjProp Item | C->S | Direct writer (u32 id + u32 byte_len + bytes), not in readItem switch |
| 34 | Deferred SharedString Item | — | Synthesized from JoinDataItemV2 (22 subtype 1) |
| 35 | ISRTimestamp Items | Both | i32 isr_step (4B LE, DeserializedISRTimestampItem) |
| 36 | Stream Replication Focus Remove | Both | u32 focus_id (4B LE) |
| 37 | Stream Pin Data Items | S->C | StreamDataItem (13) body (JoinData + 0..=4/0x08 region loop) + Guid target + i32 pin_id + bool pinned |
| 38 | (Unused) | None | Unassigned |
| 39 | Stream Replication Focus Frustum | S->C | u32 focus_id + 15 x f32 (64B) |
| 40 | Stream Replication Focus Frustum Remove | Both | u32 focus_id (4B LE) |
| 41 | Instance Intent Item | S->C | u32 count + count * (Guid instance, u8 intent_mask) (max S->C opcode) |
| 42 | Stream Excluded Instances Item | None | Registered name only |
| 43 | Region Terrain LOD Removal Item | C->S | StreamRegion::Id + u8 lod_level (max C->S opcode) |
| 45 | Cluster (DeserializedClusterItem) | Top 141 | Top-level 0x8D (ID_CLUSTER) only |
| 46 | Touch (DeserializedTouchItemS2) | Top 134 | Top-level 0x86 (ID_TOUCHES) only |

### Property types

| Id | Type | In ID_DATA, join data and variants | In ID_ISR |
|---|---|---|---|
| 0 | Nil (Variant) | 0B in Variant (sub_104EB0944) | Throws |
| 1, 4, 5, 23, 45 | (Unused) | Throws "Unsupported property type" | Throws |
| 2 | String | varuint32 len + lenB | varuint32 len + lenB |
| 3 | ProtectedString (v0) | 0B (no-op, Group 2) | 0B (no-op) |
| 6 | ProtectedString (Cached) | 16B Blake2b-128 hash + ContextTrail (Group 2) | 0B (no-op) |
| 7 | Enum | varuint32 token (Variant prepends u16 enum_id) | varuint32 token |
| 8 | ContentId | compressed=false: varuint32_str; compressed=true: u8 hdr (idx = hdr>>1 in schema.strings + zigzag64 if hdr&1 else varuint32_str) | 0B (no-op) |
| 9 | Bool | u8 (0 or 1, 1B) | u8 (1B) |
| 10 | Int | zigzag varint32 | zigzag varint32 |
| 11 | Float | f32 LE (4B) | f32 LE (4B) |
| 12 | Double | f64 LE (8B) | f64 LE (8B) |
| 13 | UDim | f32 scale + i32 offset (8B) | f32 + i32 (8B) |
| 14 | UDim2 | 2 x (f32 scale, i32 offset) (16B) | 2 x (f32, i32) (16B) |
| 15 | Ray | 3 x f32 origin + 3 x f32 direction (24B) | 6 x f32 (24B) |
| 16 | Faces | i32 LE (4B, & 0x3F) | i32 LE (4B, & 0x3F) |
| 17 | Axes | i32 LE (4B, & 0x07) | i32 LE (4B, & 0x07) |
| 18 | BrickColor | u16 LE (2B) | u16 LE (2B) |
| 19 | Color3 | 3 x f32 LE (12B) | 3 x f32 LE (12B) |
| 20 | Color3uint8 | 3 x u8 (3B) | 3 x u8 (3B) |
| 21 | Vector2 | 2 x f32 LE (8B) | 2 x f32 LE (8B) |
| 22 | Vector3 | 3 x f32 LE (12B) | 3 x f32 LE (12B) |
| 24 | Vector2int16 | 2 x i16 LE (4B) | 2 x i16 LE (4B) |
| 25 | Vector3int16 | 3 x i16 LE (6B) | 3 x i16 LE (6B) |
| 26 | CFrame (Matrix) | 3 x f32 pos + u8 orient_id (1..=36 -> 13B; 0 -> + 9 x f32 = 49B) | Same (13B or 49B) |
| 27 | CFrame (Quat) | 3 x f32 pos + u8 orient_id (1..=36 -> 13B; 0 -> + u16 + u32 quat = 19B) | Same (13B or 19B) |
| 28 | Object (Ref) | Guid (Group 2) | Guid |
| 29 / 30 | Tuple / ValueArray | varuint32 count + count * Variant | 0B (no-op) |
| 31 / 32 | ValueTable / ValueMap | varuint32 count + count * (varuint32_str key, Variant) | 0B (no-op) |
| 33 | BinaryString | readContentId (Group 2) | 0B (no-op) |
| 34 | SystemAddress | varuint32 (Group 2) | 0B (no-op) |
| 35 | NumberSequence | u32 count + count * (f32 time, f32 val, f32 env) (4 + 12*countB) | Same |
| 36 | NumberSequenceKeypoint | 3 x f32 (time, val, env, 12B) | 3 x f32 (12B) |
| 37 | NumberRange | 2 x f32 (min, max, 8B) | 2 x f32 (8B) |
| 38 | ColorSequence | u32 count + count * (f32 time, 3xf32 rgb, f32 env) (4 + 20*countB) | Same |
| 39 | ColorSequenceKeypoint | 5 x f32 (time, r, g, b, env, 20B) | 5 x f32 (20B) |
| 40 | Rect2D | 4 x f32 (x0, y0, x1, y1, 16B) | 4 x f32 (16B) |
| 41 | PhysicalProperties | u8 flags: (flags&1)==0 -> 1B (Null); <2 -> 5xf32 (21B); >=2 -> 6xf32 (25B) | Same (1B, 21B, 25B) |
| 42 | Region3 | 6 x f32 (min 3xf32 + max 3xf32, 24B) | 6 x f32 (24B) |
| 43 | Region3int16 | 6 x i16 (min 3xi16 + max 3xi16, 12B) | 6 x i16 (12B) |
| 44 | Int64 | zigzag varint64 | zigzag varint64 |
| 46 | SharedString | 16B Blake2b-128 key + ContextTrail | 0B (no-op) |
| 47 | ProtectedString (Bytecode) | 16B Blake2b-128 key + ContextTrail (Group 2) | 0B (no-op) |
| 48 | DateTime | i64 unix_ms LE (8B) | i64 LE (8B) |
| 49 | InstanceName | u8 hdr: hdr&0x80 -> schema.names index; else inline length + bytes | 0B (no-op) |
| 50 | OptionalCFrame (Matrix) | u8 hdr: <0x80 -> 1B (Null); ==0x80 -> 9xf32 + 3xf32 (49B); >0x80 -> 3xf32 (13B) | Same (1B, 13B, 49B) |
| 51 | OptionalCFrame (Quat) | u8 hdr: <0x80 -> 1B (Null); ==0x80 -> 6B quat + 3xf32 (19B); >0x80 -> 3xf32 (13B) | Same (1B, 13B, 19B) |
| 52 | UniqueId | u64 random (8B) + u32 time (4B) + u32 index (4B) = 16B | Same (16B) |
| 53 | PathWaypoint | 3 x f32 pos + u8 action (<3) + u32_string label | 0B (no-op) |
| 54 | Font | u16 weight + u8 style + u32_string family (\->/) + u32_string cachedFaceId | Same |
| 55 | SecurityCapabilities | u64 LE (8B) | u64 LE (8B) |
| 56 | Attributes / Buffer | varuint32 comp_len + varuint32 raw_len + raw/Zstd bytes | 0B (no-op) |
| 57 | ReplicationPV | AdaptivePV (sub_10455D1B0) when DebugAdaptivePVCompressor=true, else LegacyPV (sub_105031284, lod=0) | AdaptivePV (default) or LegacyPV (lod=0..=3) |
| 58 | FacsReplicationData | u8 flags (<=7) + 3 x u16 + u8 len + lenB (8 + lenB) | Same (8 + lenB) |
| 59 / 60 | NetAssetHandle / NetAssetRef | With schema.lr_types: varuint16 idx (0xFFFF -> Null; else u64 id + varuint32 idx); else u64 id + varuint32 idx + u64 type_word | 0B (no-op) |
| 61 | Content | varuint32 source_type: 0 -> Null; 1 -> readContentId; 2 -> Guid; 3 -> varuint32_str | Throws |
| 62 | PredictionTimestamp | u64 microseconds LE (8B) | u64 LE (8B) |
| 63 | SlimPayload (CSG) | i8 count; if > 0: count * (3xu8 pos + u32 quat) + count * u8 (1 + 8*countB) | Throws |
| 64 | (Reserved) | Throws | 0B (no-op) |
| 65 | AnimTrackPlayState | bool playing + f32 speed + f64 ref_step (13B) | Same (13B) |
| 66 | AnimTrackMetadata | bool looped + i16 priority (3B) | Same (3B) |
| 67 | AnimTrackWeight | f32 weight + f32 fade + f64 ref_step (16B) | Same (16B) |
| 68 | User | zigzag64 + varuint32 + zigzag64 + zigzag64 | Same |
| 69 | WeakObject | Guid (Group 2) | Guid |
| 70 | TweenInfo (v1) | f32 time + f32 delay + i32 repeats + u8 style (<11) + u8 dir (<3) + bool reverses (15B) | Same (15B) |
| 71 | TweenInfo (v2) | 15B base (style < 13) + (2xf32 if style==12; u8 n + n*2xf32 if style==11) | Same |

### Attribute types

| Tag | Type | Layout |
|---|---|---|
| 1 / 22 | Nil / Empty | 0B ([0x01] deletes attribute in ChangeAttributeItem 21) |
| 2 | String | u32 len LE + lenB |
| 3 | Bool | u8 (0 or 1, 1B) |
| 4 | Int (int32) | i32 LE (4B) |
| 5 | Float (f32) | f32 LE (4B) |
| 6 | Double (f64) | f64 LE (8B) |
| 7 | ValueArray | u32 count LE + count * AttributeValue (bounded depth <= 16, <= 4,096 items) |
| 8 | ValueMap | u32 count LE + count * (u32_str key, AttributeValue) |
| 9 | UDim | f32 scale + i32 offset (8B) |
| 10 | UDim2 | 2 x (f32 scale, i32 offset) (16B) |
| 11 | Ray | 6 x f32 LE (24B) |
| 12 / 13 | Faces / Axes | u32 LE (4B, & 0x3F / & 0x07) |
| 14 | BrickColor | u32 LE (4B) |
| 15 / 16 / 17 | Color3 / Vector2 / Vector3 | 3 x f32 (12B) / 2 x f32 (8B) / 3 x f32 (12B) |
| 18 / 19 | Vector2int16 / Vector3int16 | 2 x i16 (4B) / 3 x i16 (6B) |
| 20 | CFrame | 3 x f32 pos + u8 orient_id (0 -> + 9xf32 = 49B; 1..=36 -> 13B) |
| 21 | EnumItem | u32_str enum_family + u32 token LE |
| 23 | NumberSequence | u32 count + count * (f32 env, f32 time, f32 val) *(envelope first)* |
| 24 | NumberSequenceKeypoint | f32 env, f32 time, f32 val (12B) |
| 25 | ColorSequence | u32 count + count * (f32 env, f32 time, 3xf32 rgb) *(envelope first)* |
| 26 | ColorSequenceKeypoint | f32 env, f32 time, 3xf32 rgb (20B) |
| 27 / 28 | NumberRange / Rect | 2 x f32 (8B) / 4 x f32 (16B) |
| 29 | PhysicalProperties | u8 flags: 0 -> 0B (Null); 1 -> 5xf32 (20B); 2 -> 6xf32 (24B) |
| 30 | Color3uint8 | 3 x u8 (3B) |
| 31 / 32 | Region3 / Region3int16 | 6 x f32 (24B) / 6 x i16 (12B) |
| 33 | Font | u16 weight + u8 style + u32_str family + u32_str cachedFaceId |
| 34 | SecurityCapabilities | u64 LE (8B) |
| 35 | UDim3 | 3 x (f32 scale, i32 offset) (24B) |
| 36 | TweenInfo (v1) | f32 time + f32 delay + i32 repeats + u32 style (<11) + u32 dir (<3) + bool reverses (21B) |
| 37 | InstanceRef | Guid |
| 38 | Int64 | i64 LE (8B) |
| 39 | Content (URI) | u32_str uri |
| 40 | Buffer | u32 len LE + lenB |
| 42 | TweenInfo (v2) | 21B base (style < 13) + (2xf32 if style==12; u8 mode + 4xf32 if style==11) |

These tables come straight from the [IDA cross-check](https://docs.rove.wtf/notes/ida-notes), where each one was verified against the Mac Roblox client.

## Physics state (ISR)

Positions change too often to send as property changes. `ID_ISR` packets carry them in groups by level of detail:

- A 13-byte header: the step number, the group count and a default scope.
- Per group: an object count, a level of detail (0–3) and a time delta.
- Per object: Guid, class, a bitmask of which properties are present, then just those properties.

Positions, rotations and velocities use the **AdaptivePV** encoding. A header byte says which parts are zero; each non-zero vector picks a bit width from 12 to 52 bits by magnitude, and rotations use 0, 4, 5 or 6 bytes from equal-area spherical tables. A slow, upright, nearby part costs a few bytes.

Each vector starts with a 4-bit bucket (the position's gets two more bits from the header). A vector in bucket `b` can reach ±2<sup>b</sup>, and the bucket decides the width: 12 bits per axis up to bucket 5, then 20, 28, 36, 44 and 52. The sender picks the smallest bucket that fits, so precision follows size. Move the sliders and the layout changes with them; what's shown under each vector is what Rove's decoder gets back from those exact bytes.

(Interactive on the web page: sliders for a part's distance from the origin, speed and spin, showing the AdaptivePV bytes. Each vector picks the smallest bucket b whose range ±2^b holds it; the bucket sets the bit width per axis: 12 bits up to bucket 5, then 20, 28, 36, 44 and 52. A zero vector costs one header bit and no bytes.)

The rotation here is left upright (mode 0, no bytes). A tilted part adds 4, 5 or 6 bytes for it.

## Ownership

Each assembly of parts has a **network owner**. The server simulates its own parts; a client simulates its character and anything handed to it. Rove reads ownership from `NetworkOwnerV3`, comparing it to the session-local id of Terrain's owner (the server), not to the world scope. That distinction is why the character spawns and moves correctly.

For parts it owns, Rove runs its own physics and sends the results back (`ID_ISR` outbound and CFrame acks, item `10`), which is what lets `Humanoid:MoveTo` walk 30 studs and have the server accept it. For parts it doesn't own, it applies the server's poses as they arrive (`133` / `231`, up to 256 per tick), keeping any local overrides a script made.

## Streaming

With `StreamingEnabled`, the server only sends regions near a **replication focus**. Rove sends a focus item (`26`) for each region it receives, 512 studs around it, plus one streaming resume once the first region lands. Some servers withhold the character until they've seen that resume. Regions come and go: stream data (`13`), region removal (`14`) and pin items (`37`) manage them.

## Storage

Replicated instances don't become full objects until a script touches them. Each one is a compact record: interned class name and parent, plus a 40-byte packed property block with 53 binary value tags (Vector3, CFrame forms, Color3, enum, references …). Hierarchy walks, `FindFirstChild`, tag queries and spatial queries read those records directly. In lightweight mode, pristine parts more than 384 studs from the character fold back into records every 250 ms.

That's how Grow a Garden, with 109,886 replicated instances, runs in 38 MB. [Performance](https://docs.rove.wtf/performance) has the measurements.
