---
name: roblox-chunk-streaming-and-world-lifecycle
description: Design lifecycle-safe Roblox world chunks that cooperate with Workspace instance streaming, server replication, player movement, and deterministic loading or cleanup.
---

# Chunk streaming and world lifecycle

Treat procedural chunk loading and Roblox instance streaming as two related but distinct systems. Your game owns its logical chunk state and generation lifecycle; Roblox instance streaming controls which eligible Workspace descendants are present on a client. Do not assume one system automatically performs the other's cleanup or persistence work.

Define explicit chunk states such as Unrequested, Queued, Generating, Ready, Active, Unloading, and Failed. Specify legal transitions, cancellation behavior, retry limits, ownership, and idempotent cleanup. Use stable chunk coordinates and generation-version keys so duplicate requests cannot create duplicate world content. Avoid unbounded queues and per-frame polling when event-driven scheduling is sufficient.

Keep authoritative collision, traversal blockers, resource state, and critical spawn regions available to the server. The client must tolerate streamed-out descendants and late arrival: do not cache Workspace instances forever, assume a child exists immediately after joining, or treat client visibility as proof that a server object exists. Re-resolve references safely and make interactions robust to missing streamed content.

Configure Workspace.StreamingEnabled in Studio; it is not scriptable at runtime. Review StreamingMinRadius, StreamingTargetRadius, StreamOutBehavior, StreamingIntegrityMode, and ModelStreamingMode together. Roblox's supported StreamOutBehavior values include Default, LowMemory, and Opportunistic. LowMemory waits for memory pressure before stream-out; Opportunistic can remove content beyond StreamingTargetRadius even without memory pressure. Keep StreamingTargetRadius greater than StreamingMinRadius so the client has a streaming buffer. Do not increase radii casually: larger high-priority regions can raise client memory and bandwidth demand. Apply model-level streaming modes only after checking their documented behavior and the scripts that depend on descendants.

Keep large assets and non-immediate content out of containers that replicate everything to clients. Roblox instance streaming applies to eligible descendants of Workspace; placing content in ReplicatedStorage does not make that content stream by distance. Do not use Persistent model behavior as a substitute for correct lifecycle design.

Test rapid travel, teleport arrival, death/respawn, reconnect, chunk boundary crossings, low bandwidth, and stream-out/stream-in cycles. Confirm that cleanup does not delete durable player progress and that a client can recover when a visual chunk is absent. Use Studio streaming debug tools and real device sessions; a JSON manifest check cannot establish runtime streaming behavior.
