https://github.com/r-unic/flamework-instance-pooling
Classes to pool Roblox instances, UIPool and PartPool included
https://github.com/r-unic/flamework-instance-pooling
Last synced: 5 months ago
JSON representation
Classes to pool Roblox instances, UIPool and PartPool included
- Host: GitHub
- URL: https://github.com/r-unic/flamework-instance-pooling
- Owner: R-unic
- Created: 2024-12-02T17:36:41.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-12-10T03:51:56.000Z (7 months ago)
- Last Synced: 2025-01-30T07:06:22.440Z (5 months ago)
- Language: TypeScript
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @rbxts/flamework-instance-pooling
Classes to pool Roblox instances, UIPool and PartPool included. Pooled instances can return themselves with no reference to the pool.## Example
```ts
const pool = new PartPool(new Instance("Part"), World, 10);
const part = pool.take(new CFrame(0, 5, 0));
task.wait(6);
part.returnToPool();
```