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

spawnLocal

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.

Parameter Type
world World
prefab Prefab
options? SpawnOptions

Entity

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.

Parameter Type
world World
options SpawnOptions

Entity