Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

spawnLocal

spawnLocal(writer, prefab, options?): Entity

Spawns an entity only this world holds, page-only on a page in a room: no stream carries it, the dump files it under a local: key, and destroy(findAuthority(writer, entity), entity) takes it away. What a placement ghost, a local preview or a cosmetic entity uses, as Unity’s plain Instantiate and Roblox’s client-made instance are. It takes any writer, as it changes nothing another world holds: a step, the writer useViewWriter() returns, or a setup’s. A re-run refuses it: a development world throws, naming the fix, since a re-run would make one more for every correction.

Parameter Type
writer LocalWriter
prefab Prefab
options? SpawnOptions

Entity

spawnLocal(writer, options): Entity

Spawns an entity only this world holds, page-only on a page in a room: no stream carries it, the dump files it under a local: key, and destroy(findAuthority(writer, entity), entity) takes it away. What a placement ghost, a local preview or a cosmetic entity uses, as Unity’s plain Instantiate and Roblox’s client-made instance are. It takes any writer, as it changes nothing another world holds: a step, the writer useViewWriter() returns, or a setup’s. A re-run refuses it: a development world throws, naming the fix, since a re-run would make one more for every correction.

Parameter Type
writer LocalWriter
options SpawnOptions

Entity