Skip to main content

Pool

A slot pool made by World:pool.

Functions​

entity​

Pool:entity() → Entity

A new entity with a slot of the pool. It is an ordinary entity: every world call accepts it, World:delete gives its slot back to the pool.

Show raw api
{
    "functions": [
        {
            "name": "entity",
            "desc": "A new entity with a slot of the pool. It is an ordinary entity: every world call accepts\nit, [World:delete] gives its slot back to the pool.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Entity"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 855,
                "path": "src/init.luau"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "Pool",
    "desc": "A slot pool made by [World:pool].",
    "source": {
        "line": 847,
        "path": "src/init.luau"
    }
}