spawnLocal
Call Signature
Section titled “Call Signature”spawnLocal(
world,prefab,options?):Entity
Spawns an entity only 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(world, entity), entity) takes it away. What a
placement ghost, a local preview or a cosmetic entity with traits uses,
as Unity’s plain Instantiate and Roblox’s client-made instance are.
It takes a world, as it changes nothing another world holds. 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 |
|---|---|
world |
World |
prefab |
Prefab |
options? |
SpawnOptions |
Returns
Section titled “Returns”Entity
Call Signature
Section titled “Call Signature”spawnLocal(
world,options):Entity
Spawns an entity only 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(world, entity), entity) takes it away. What a
placement ghost, a local preview or a cosmetic entity with traits uses,
as Unity’s plain Instantiate and Roblox’s client-made instance are.
It takes a world, as it changes nothing another world holds. 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 |
|---|---|
world |
World |
options |
SpawnOptions |
Returns
Section titled “Returns”Entity