Limits
These protect the server. Going over a rate limit makes the call error unless noted otherwise.
| Area | Limit |
|---|---|
| Mods | 16 running per server; 32 scripts and 512 KB of source per mod; 50 saved mods per player. |
| CPU | Every loop iteration and call costs 1 step. Each mod gets up to 250k steps and 8 ms per frame, and all mods share 15 ms per frame (each mod still gets at least 0.5 ms). A thread runs for 10k steps before the next thread gets a turn. Long work spread over frames is fine. |
| Code that cannot yield | Metamethods and table.sort comparators get a 50k-step overdraft before their thread is aborted. |
| Hooks | 50k steps per call; all hooks share 6 ms and 2000 calls per frame. |
| Memory | Strings up to 1 MB; table.create up to 1M entries; 2048 threads; 2048 coroutines; 4096 connections per signal. If the server heap grows by more than 1 GB, the busiest mod is stopped. |
| Spawning | Units.Spawn 100/s (burst 200), 1500 alive per mod. Building:Recruit 100/s, sharing the game's 1000-unit queue. |
| Map | Blocks 150/s, 1500 per mod. Queries (Raycast, GetGroundHeight) 1000/s. |
| Zones | 100 live per mod, 20 created per second, sides up to 4000 studs. |
| Messages | Announce/Notify: 10/s (burst 20). Logs: 100 lines/s; extra lines are dropped, with a warning. |
| UI | 1000 widgets and 32 panels per mod; 250 creations/s; 25 new strings filtered per second (burst 75). Clients get batched changes 20 times a second. Button/text box events: 30/s per player. |
| Storage | 500 keys, 64 KB per value, 1 MB per store, 100 writes/s. |
| Gamemodes | 32 registered. |