spawnLocal
Call Signature
Section titled “Call Signature”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
LocalWriter |
prefab |
Prefab |
options? |
SpawnOptions |
Returns
Section titled “Returns”Entity
Call Signature
Section titled “Call Signature”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
LocalWriter |
options |
SpawnOptions |
Returns
Section titled “Returns”Entity