# horrorKit
Everything a first-person survival-horror game needs, as one install: a light that throws real shadows and a battery you worry about, placed lights that flicker and die on cue, scripted events and a library of scares, a tension director that paces them and drives the music, heartbeat and screen feel, monsters that hunt you by sound and by your light, notes and tapes that tell the story, and the survival loop around them (scarce weapons, doors and keycards, supplies, safe rooms, save terminals and a HUD). Every style is one field. Built for multiplayer: two players see the same doors, monsters, lights and scares, and each has their own light, dread and HUD.
Version **1.0.21** (`Horror.VERSION`). horrorKit declares every package below in its `package.yaml`, so installing it brings each one at the version listed.
## What it installs
horrorKit is the umbrella. Each horror part is also its own package you can install alone:
| package | version | what |
|---|---|---|
| **flashlightKit** (was torchKit) | 1.0.4 | 12 handheld lights (classic torch, penlight, lantern, head lamp, phone, flare, glow stick, candle, dynamo, UV, camera flash, lighter), 11 battery types, recharge and swap, failures the story triggers |
| **eerieLightsKit** (was flickerKit) | 1.0.6 | 16 placed-light behaviours (dying fluorescent, guttering candle, swinging bulb, emergency red, alarm beacon, strobe, lightning, sparking, brown-out, sodium warm-up, TV glow, neon...), short-outs, power circuits, shadow-only figures |
| **scriptedEventsKit** (was cueKit) | 1.0.4 | triggers (area, look-at, pickup, door/interact, timer, chain, dread, event) playing ordered beats; once or repeating; remembered across death; host-decided for everyone |
| **scaresKit** (was scareKit) | 1.0.4 | 26 original scares rated 1 to 5 (knock, whisper, footsteps behind, shape crossing, lights die and it's closer, vent burst, door slam, power failure, body drop, chase sting...) |
| **tensionKit** (was dreadKit) | 1.0.4 | the tension director: 6 pacing styles, 6 screen looks, 5 audio palettes, music/ambience/heartbeat/breathing, a dread readout (F3) |
| **loreKit** | 1.0.6 | notes, memos, terminals, tapes with voice and subtitles, graffiti, data pads, photos, and a journal |
| **stalkerKit** | 1.0.10 | monsters on aiKit: pursuer, shambler, lurker, light-shy, blind hunter |
| **bulkheadKit** | 1.0.3 | rooms, corridors and props for station and ship interiors, used by the showcase room |
And the published kits it stands on, each declared with the version it is built and tested against:
| package | version | used for |
|---|---|---|
| aiKit | 1.4.0 | monster brains and senses, including carried lights (a flashlight gives you away) |
| navKit | 1.5.8 | monster movement |
| interactKit | 1.6.8 | doors, locks, keycards, switches, every use prompt |
| inventoryKit | 1.0.27 | the spare-battery bag and item strip |
| saveKit | 1.3.21 | checkpoints at save terminals, the lore journal |
| weaponsKit | 1.3.3 | the revolver, coach gun and flare pistol |
| SecondWind | 1.4.8 | health, first aid, death |
| Lifeline | 1.0.4 | respawn points |
| soundstage | 2.1.3 | music driven by the tension director |
| juiceKit | 1.2.12 | camera shake, sway and tremor |
| controlsKit | 1.4.9 | rebinding, prompts and touch buttons |
Not a dependency: **stealthKit**. The HUD has a light and noise element (`HorrorHUD.showStealth`) that draws whatever source a game hands it with `HUD.setSource("stealth", fn)`; the `horrorStealthLink` package passes stealthKit's readout there (place one `horrorStealthLink.StealthReadout`; this world's Brinefall scene does). Installing horrorStealthLink brings stealthKit with it; installing horrorKit alone does not. horrorKit itself never requires stealthKit, so installing horrorKit does not bring it.
Not a dependency either: **menusKit** (horrorKit draws no menu; Brinefall's ending screen uses it and declares it).
## First example
In a scene's `build.luau`, with a first-person player already set up:
```lua
local director = entity.spawn("HorrorDirector")
director.component.add("horrorKit.HorrorDirector", {
pacing = "survivalClassic", look = "grain70s", palette = "deepSea",
hud = "classic", torch = "classic", loadout = "revolver",
})
```
Press Play: every player carries a torch (F toggles, V shakes it back to life, B swaps a battery) and a six-shot revolver with a far-too-slow reload; dread builds in the dark and drives the music, heartbeat, breathing and screen; F3 shows the dread readout.
## The one-field styles
| field | values |
|---|---|
| `pacing` | slowBurn, rollercoaster, relentless, quietDread, survivalClassic, arcade |
| `look` | clean, grain70s, vhs, coldMonitor, sickly, bleachBypass |
| `palette` | industrial, deepSea, organic, synth, classic |
| `hud` | bare, minimal, classic, scifi, vhs, diegetic |
| `torch` | any flashlightKit style |
| `loadout` | revolver, coachgun, flaregun (comma separated) |
Per object: `LightBehavior.style`, `Stalker.kind`, `Lore.style`, `Scare.scare`, `interactKit.Door.look`.
## Components
| component | what |
|---|---|
| `HorrorDirector` | one per scene: the styles above; equips each player; runs the wiring |
| `HorrorHUD` | the HUD (the director adds it from its `hud` field) |
| `SafeRoom` | a box where dread pauses and drains, scares hold and monsters break off (`extents`, `label`, `blockMonsters`) |
| `SaveTerminal` | use it to save a checkpoint (saveKit), move your respawn here and recharge your light |
| `Supply` | `kind` = ammo, firstAid, bandage, battery; `amount`; per player by default |
## The wiring (`require("~horrorKit.api")`)
Loading `horrorKit.api` hands the optional kits to the horror kits that use them (`tensionKit.links`, `scriptedEventsKit.links`, `scaresKit.links`, `loreKit.links`): aiKit, SecondWind, soundstage, juiceKit, interactKit, inventoryKit and saveKit. The horror kits never require those by name, so each of them installs on its own with nothing extra; in a horrorKit game everything is linked with no call of yours (`Horror.linkKits()` repeats it).
`Horror.setup(opts)` (the director calls it) connects, on each player's own engine:
- the torch's visibility and beam -> the monsters (stalkerKit, through aiKit's carried light); its click -> a noise they hear;
- gunshots, doors and torch clicks -> monster noises and dread stimuli;
- monster threat, sightings and attacks, low battery and low health -> dread;
- scares -> asking the director first and reporting back (pacing);
- safe rooms -> dread pause and the HUD marker.
Also: `Horror.setSafe(on)`, `Horror.isSafe()`, `Horror.message(text, seconds)`, `Horror.objective(text)`, `Horror.localBody()`, `Horror.teardown()`, and every part as `Horror.Torch`, `Horror.Dread`, `Horror.Stalkers`, `Horror.Scares`, `Horror.Cues`, `Horror.Lore`, `Horror.Weapons`, `Horror.Interact`, `Horror.Arms`, `Horror.HUD`.
**Weapons** (`horrorKit.weapons`, on weaponsKit): `revolver` (6 rounds, 4.2 s reload), `coachgun` (2 shells, 5 s reload), `flaregun` (one flare that lights and burns). `Arms.give(body, "revolver,coachgun")`, `Arms.addAmmo(body, n)`.
## HUD
Six styles, one field (`hud` on the director, or `HorrorHUD.style`): `bare`, `minimal`, `classic`, `scifi`, `vhs`, `diegetic`. Health, ammo in the gun and spare, light battery, keys and keycards, items, a damage vignette, pickup and objective lines, the safe-room marker and an optional dread hint. Per player; scales for desktop, browser, tablet and phone and keeps clear of the touch controls.
| style | look |
|---|---|
| `bare` | nothing but the damage vignette, the low-health pulse and transient lines (objective, safe room, "Out of ammo", "Battery low" arrive as messages) |
| `minimal` | tiny monospace corner text that fades to a ghost after 3.5 s without change and comes back when something changes; warnings stay lit |
| `classic` | survival-horror status panel: an ECG line whose colour, rhythm and sweep speed follow FINE / CAUTION / DANGER, battery cells, a big ammo count, key and keycard icons |
| `scifi` | helmet visor: corner brackets, scanline wash, a vitals arc, PWR cell bar, a round counter with magazine ticks, ACCESS chips |
| `vhs` | camcorder OSD: blinking REC dot, HP level meter, the torch battery as the camera battery, CNT counter and tape time, date, tracking-noise bands that thicken and redden when hurt |
| `diegetic` | a leather wrist strap with two analogue dials (LAMP charge and PULSE, needles with red zones) and a clipped paper note: the objective as a to-do, rounds as hand-drawn tally marks, spare count, key tags |
Put `HorrorHUD` on any entity (the director adds one), or drive it from code with `local HUD = require("~horrorKit.hud")`:
| call | does |
|---|---|
| `HUD.setStyle(name)` / `HUD.style()` / `HUD.styles()` | switch the look; list them with descriptions |
| `HUD.setPalette(style?, overrides?)` / `HUD.palette(style?)` | recolour a look without replacing it (style defaults to the current one; `nil` overrides restores its defaults). Keys: `font`, `color`, `bg`, `shadow`, `accent`, `size`, `upper`, `radius`, `border`; the `classic` look also reads `accent` (objective bar), `objectiveLabel`, `objectiveText`, `battery`, `batteryLow`, `batteryDead`, `batteryDim` and `batteryOrientation` (`"horizontal"` default, or `"vertical"` for upright cells filling from the bottom). `HUD.PALETTES` holds them all |
| `HUD.message(text, seconds?, { color }?)` | a transient line (up to three stack; the same line again restarts it) |
| `HUD.objective(text?)` | the current objective (nil or "" clears) |
| `HUD.setSafe(on, label?)` | the safe-room / save badge |
| `HUD.setElement(name, on)` / `HUD.setElements(t)` | health, ammo, light, keys, items, vignette, messages, objective, safe, dread, stealth |
| `HUD.setVisible(on)`, `HUD.setScale(k)` | hide for cutscenes and menus; size multiplier |
| `HUD.setTarget(body?)` | show another body's data (spectating) |
| `HUD.setSource(kind, fn?)` | replace a data source (health, ammo, light, keys, items) for a game that keeps its own; `stealth` has no source until a game sets one (`fn` returns `{ light, class, threshold, noise, reach }`) |
| `HUD.state()` | what it shows now (tests) |
Data comes through soft links, so a missing kit just leaves its element empty: SecondWind (`HK.state`), weaponsKit (the local `Weapon`'s synced `ammo`/`reserve`/`reloading`), flashlightKit (`Torch.charge`/`switchedOn`/`spares`, and its `batteryLow`/`batteryDead`/`swapped` events), interactKit (the player's keys and keycards), inventoryKit (the hotbar) and tensionKit (`get`/`band`). While it runs it hides weaponsKit's ammo panel, flashlightKit's meter, interactKit's carried strip and Lifeline's own player bar (and Lifeline's vignette), and gives them back when it stops (`hideKitHuds = false` keeps them). It samples ten times a second and rebuilds only when what it shows changes (0 rebuilds a second while nothing changes); pulses, blinks, sweeps and noise are engine-run CSS animations. On a touch screen it moves out of the lower corners (movement stick, action buttons): sideways into a left column and beside the corner buttons, upright into one column down the left.
## Showcase room
One call builds a compact, dark room that shows the whole kit working: three placed lights, flashlight pedestals (`TorchStand`), a scare on an area trigger, a note, a safe corner with a save terminal, and a monster pen (`MonsterPen` keeps the monster in). Copy it into your own world to see the kit before you build with it.
```lua
local Showcase = require("horrorKit.showcase")
function content()
-- your scene and first-person player (Camera environment = "isolated"), with the new-world
-- template's `lighting` entity deleted: its sky lights the room even through an isolated camera
Showcase.build(nil, { at = { 40, 0, 0 } })
end
```
Options: `at`, `theme`, `director`, `monster`, `navMap`, `scare`, `stands`, `labels`, `name` (see `showcase.module/README.md`). `Showcase.label(parent, name, pos, yaw, title, opts)` draws a readable world-space label.
## Kit gallery
The horrorKit world also has a walkable gallery scene (`scenes.gallery`; a console in Brinefall's dive bay opens it, a button in its hub goes back): all 12 flashlight styles on pedestals, every battery type and failure mode on buttons, all 16 placed light styles, every light state with a circuit, a Silhouette and an Apparition, five monster pens and all 26 scares in booths that replay, each with a label. From code: `layers.load("scenes.gallery")`.
## Guides
- **How to make a horror game: light a dark room, build a scare, tune the tension and add a monster that hunts the player** (`horrorKit.package/how-to-make-a-horror-game-light-a-dark-room-build-a-scare-tune-tension-add-a-monster`)
- **Build a small horror level from an empty world, step by step** (`horrorKit.package/build-a-small-horror-level-from-an-empty-world`)
Open them with the `guides` tool or the Docs panel. Each package also carries its own guide.
## Example
**Brinefall Station** (the `brinefall` package in the horrorKit world): a 10–15 minute level in a flooded deep-sea research station, built from these parts and bulkheadKit.
## 1.0.21
On saveKit 1.3.21 (from 1.3.20) and controlsKit 1.4.9 (from 1.4.7): saveKit 1.3.21 is built against controlsKit 1.4.9 and menusKit 1.4.5, which no longer need the engine's deleted zui UI library; this world now states saveKit with its package.yaml. The Hold Your Breath world's entrypoint loads its dark theme through `ui.loadTheme` instead of requiring the deleted zui theme module, so the world loads and pushes on the current engine. No horrorKit code changes.
## 1.0.20
Published by a push that timed out with a 503 before the controlsKit pin was moved: it states saveKit 1.3.21 and still states controlsKit 1.4.7, which saveKit 1.3.21 does not bring. Use 1.0.21.
## 1.0.19
horrorKit's own dependency copy of barsKit carries barsKit's Showcase component in full again (661 lines). 1.0.18 bumped the showcase packages' versions but the restore itself did not reach main in that release, so its barsKit copy still shipped the empty file 1.0.17 had (found while releasing Low Water). No other change.
## 1.0.18
On scaresKit 1.0.5 (which states scriptedEventsKit 1.0.4) and saveKit 1.3.20. No horrorKit code changes.
## 1.0.17
On stalkerKit 1.0.10: a Stalker whose kind the game defines after it woke (a joining player's engine) waits for the kind instead of failing, so a second player's creature no longer loses its brain. No horrorKit code changes.
## 1.0.16
`Horror.clearRespawn(body?)` forgets which save terminal brings a player back, so a New Game respawns them at the level start until they use a terminal again (before, the terminal from the finished game stayed their respawn). HUD palettes take `objectiveFont`, the classic objective text's font family (default `ptserif`, unchanged), so a game can match its menu type. On saveKit 1.3.20 (`Save.clearCheckpoint()`).
## 1.0.15
SaveTerminal fix to 1.0.14: it wrote and read the respawn attribute by indexing the body's attribute proxy, which is sealed, so using a terminal only warned "respawn not moved" and the picker never saw a choice. It now goes through `attribute.set` / `attribute.get`. Verified in play with two terminals.
## 1.0.14
HUD palettes: `HUD.setPalette(style?, overrides?)` and `HUD.palette(style?)` recolour a look without replacing it; the `classic` look's objective bar (`accent`), objective label and text, and its battery cells (`battery`, `batteryLow`, `batteryDead`, `batteryDim`, `batteryOrientation` = `"horizontal"` or `"vertical"`) are no longer hardcoded. Defaults unchanged. SaveTerminal now really moves your respawn: every terminal's Lifeline spawn point starts switched off, using a terminal marks it on your body (attribute `horrorKitRespawnTerminal`), and a spawn picker brings each player back at the terminal they used last (before any save, Lifeline's own choice: the level's PlayerSpawn or any SpawnPoint the game placed). Before, every terminal's point was live from play start and Lifeline picked one at random. On loreKit 1.0.6 (subtitles setting), bulkheadKit 1.0.3 (surfaces no longer black under an isolated camera, `B.collect` for batching), flashlightKit 1.0.4 (torch follows the carrier when the main camera is elsewhere), stalkerKit 1.0.9 (`drowned` body, `appearAt` cancels a retreat) and scriptedEventsKit 1.0.4 (`call` beat takes `fn`). New HUD palette test.
## 1.0.13
On eerieLightsKit 1.0.6. The guide *Build a small horror level from an empty world* now turns the first-person rig to face up the corridor (`rig.localRotation = { 0, 1, 0, 0 }`; the camera starts from the rig's own pose) and lights the corridor brightly enough to see (tubeA 18, tubeB 14, cabinBulb 8, medTube 25). Contributed in pull request #2.
## 1.0.12
On eerieLightsKit 1.0.5 and stalkerKit 1.0.8. No code changes.
## 1.0.11
On eerieLightsKit 1.0.4 and stalkerKit 1.0.7. No code changes.
## 1.0.10
README only: the table of the kits it installs lists the versions 1.0.9 brings (eerieLightsKit 1.0.3, scriptedEventsKit 1.0.3, scaresKit 1.0.4, tensionKit 1.0.4); the 1.0.9 README still showed the earlier ones. No code changes.
## 1.0.9
While the horror HUD is up it also hides saveKit's own level and XP bar (and puts it back when it stops), so no "LV 1, 30 / 100 XP" bar appears in a horror game or pushes the condition and weapon panels. On flashlightKit 1.0.3, eerieLightsKit 1.0.3, scriptedEventsKit 1.0.3, scaresKit 1.0.4, tensionKit 1.0.4, loreKit 1.0.5 and stalkerKit 1.0.6.
## 1.0.8
On SecondWind 1.4.8 and stalkerKit 1.0.5, the SecondWind stealthKit 1.0.22 brings, so adding horrorStealthLink leaves one SecondWind in the world. No code changes; hudTests 11/11.
## 1.0.7
README: the stealth readout bridge, horrorStealthLink, installs into a fresh world now (stealthKit 1.0.20), so the README no longer calls it blocked. On SecondWind 1.4.7 (the newest SecondWind release) and stalkerKit 1.0.4. No code changes.
## 1.0.6
README: the stealth readout bridge says plainly that its fresh install is blocked upstream for now.
## 1.0.5
On loreKit 1.0.4 (its reader test no longer leaves engine errors). The stealth readout bridge, horrorStealthLink 1.0.2, now brings stealthKit 1.0.17.
## 1.0.4
Brings the fixed kits from the fresh-world check: eerieLightsKit 1.0.2, scaresKit 1.0.3, tensionKit 1.0.3, stalkerKit 1.0.3 (monster surfaces), loreKit 1.0.3, bulkheadKit 1.0.2.
## 1.0.3
- Depends only on the packages its own code uses: menusKit is no longer declared; SecondWind is declared at the release its references reach.
- `horrorKit.api` links the optional kits into tensionKit 1.0.2, scriptedEventsKit 1.0.2, scaresKit 1.0.2 and loreKit 1.0.2, which no longer require them by name (so none of them drags another kit into an install).
- The stealth readout link moved out of Brinefall into the new `horrorStealthLink` package.
## 1.0.2
- Installs into an empty world again: 1.0.1 recorded stealthKit 1.0.15 as a dependency (the HUD required its readout by name), and that release does not install into a fresh world, so `zeromind installAsset` refused horrorKit 1.0.1 everywhere. The HUD's stealth element now reads only a source the game sets (`HUD.setSource("stealth", fn)`).
- Darkness: the showcase snippet and the guides now say to delete the new-world template's `lighting` entity. Its sky lit a closed room to mean 37/255 with every light and the torch off, through an isolated camera; deleted, the same room reads 0.5/255.
- Cheaper frame: HorrorDirector re-asserts the own-body hider and the single touch Menu button 10 times a second instead of every frame (each pass walked the body's descendants and read the main camera).
## Multiplayer
Shared and host-decided: doors, keycards and locks (interactKit), placed lights (eerieLightsKit), cues and scares (scriptedEventsKit), monsters (stalkerKit on aiKit). Per player: torch and battery, dread and everything it drives, HUD, journal, supplies.
## Known limits
- Monster bodies are re-proportioned, re-skinned built-in humanoids with attached parts, not sculpted creatures (mesh generation was unavailable when this was made).
- The torch toggle (F) is also controlsKit's second interact key in its fps scheme; E stays interact.
# kitGallery.layout
Builds the horror kit gallery at author time: `require("kitGallery.layout").build()` from `scenes/gallery.scene/build.luau`. It makes a hub, a spine corridor and seven halls of labelled bays (flashlight styles, batteries and failures, placed light styles, light states with a circuit, Silhouette and Apparition, monster pens, scares I and II), then calls `horrorKit.showcase` for the showcase room at the north end.
Interactive pieces are named so `kitGallery.runtime` can wire them in play: buttons `gbtn:<action>:<arg>` (battery, fail, flicker, charge, restore, state, circuit, silhouette, apparition, noise, scare), scare spots `gscare:<id>:<yaw>`, live state readouts `gstat:<lamp>`. Returns `{ root, spawn, halls, zEnd }`.
# kitGallery.runtime
The gallery's play-time wiring, called from `scenes/gallery.scene/entrypoint.luau` (`onLoad`, the play-mode load hook, every peer): `require("kitGallery.runtime").start()`.
- places every scaresKit scare at its booth (`gscare:<id>:<yaw>` spots) with a manual trigger; a booth button rebuilds the props and fires it again, as often as you like;
- wires every `gbtn:<action>:<arg>` button: flashlightKit batteries (`give` + `swap` + nearly empty), failures (`fail` for 6 s), story flicker, charge, restore; eerieLightsKit states (`setState`, returning after 6 s), the circuit (`circuit`), the Silhouette (`silhouette`) and the Apparition (re-arm + flicker); stalkerKit noises (`hearNoise` inside a pen);
- keeps the light-state readouts (`gstat:<lamp>`) current from `stateChanged`;
- wakes each monster pen (`Stalkers.setActive`) only while the local player is within 16 m.
`R.stop()` drops the wiring, `R.status()` reports what was wired and the last presses.
# bulkheadKit
Build derelict sci-fi interiors in code: research stations, ships, bunkers, submarines, labs, maintenance tunnels. One call builds a room or corridor with real doorway openings, door frames, structural ribs and ceiling beams, pipe runs, cable trays and trims; another places one of 30 procedural props. Six surface themes switch the whole look with one word. Made for horror levels (it builds the demo level of the horror kit in this world, *Brinefall Station*), and works for any interior.
Version **1.0.3** (`Build.VERSION`).
## Install
Search ZeroMind for **bulkheadKit** and install `bulkheadKit.package`, or `zero zeromind installAsset <guid>` in the shell. It needs nothing else: the surfaces it builds with ship inside it.
## First example
In a scene's `build.luau`:
```lua
local B = require("bulkheadKit.build")
function content()
local root = entity.spawn("Station")
B.useTheme("derelict") -- pale green bulkheads, grating, rusty pipes
-- a 3 m wide, 20 m long corridor with a doorway at its north end
local hall = B.room("hall", { x0 = -1.5, x1 = 1.5, z0 = 0, z1 = 20, h = 3.2,
openings = { { side = "N", at = 0, w = 1.6, h = 2.3 } } }, root)
-- a lab beyond it, in another theme
B.useTheme("clinical")
local lab = B.room("lab", { x0 = -6, x1 = 6, z0 = 20.3, z1 = 32, h = 4,
skipWalls = { S = true } }, root)
B.prop("labBench", { 0, 0, 25 }, 0, lab.root)
B.prop("tank", { -4, 0, 29 }, 0, lab.root)
B.prop("fluoro", { 0, 3.95, 25 }, 90, lab.root) -- ceiling fixture; put your Light under it
end
```
Two rooms that touch share one wall: give one of them `skipWalls` on that side and cut the doorway (`openings`) on the other.
## Rooms: `B.room(name, spec, parent?) -> { root, cuts, center, y, h }`
`spec` is the inner floor rectangle and what to put round it:
| field | meaning | default |
|---|---|---|
| `x0, x1, z0, z1` | inner floor rectangle, metres (+Z = north) | required |
| `y`, `h` | floor height and room height | 0, 3.2 |
| `wall` | wall thickness | 0.3 |
| `openings` | doorways `{ side = "N"/"S"/"E"/"W", at = centre along that wall, w, h, sill }` (a sill makes a window) | none |
| `skipWalls` | `{ N = true, ... }` sides left open (corridor ends, shared walls) | none |
| `ribs` | spacing of structural frames on the long walls and beams across the ceiling (0 = none) | 2.4 |
| `pipes`, `trays` | the pipe bundle along one long wall and the cable tray down the middle | on |
| `noFloor`, `noCeiling` | leave them out (pools, shafts, ramps, open sky) | off |
| `floor`, `walls`, `lower`, `ceiling` | a material or theme role for this room only | the theme's |
Walls have a dark lower band (`wallLower`) to 1.05 m, a skirting and a dado rail, and every doorway gets jambs and a header in the theme's `trim`. Walls and floors carry box colliders; decoration does not.
## Themes: `B.useTheme(name)`
| theme | walls | floor | for |
|---|---|---|---|
| `derelict` | chipped pale-green riveted bulkhead | rusty grating | research stations, the default |
| `hull` | dark bolted pressure hull | wet tread plate | docks, engine rooms, the deep parts of a ship |
| `clinical` | cracked white tile | studded rubber | med bays, labs, showers |
| `concrete` | damp stained concrete | grating | pump rooms, service tunnels, basements |
| `quarters` | green over wood laminate | rubber | cabins, offices, a mess |
| `industrial` | dark green over hazard stripes | tread plate | plant rooms, cargo holds |
The surfaces are generated PBR sets (colour, normal, roughness/metal) wrapped with the engine's world-space **triplanar** shader, so a 20 m wall and a 0.3 m jamb both tile at real size and nothing stretches. `B.material(roleOrName)` returns any of them for your own parts.
## Props: `B.prop(kind, pos, yaw?, parent?, opts?) -> group`
Every prop is built round its own floor point, facing -Z, and placed with `pos` and `yaw` (degrees). `B.propKinds()` lists them:
| kind | what | options |
|---|---|---|
| `locker` | row of steel lockers | `count`, `openIndex` (one door hangs open) |
| `bunk` | two-tier bunk with mattresses, blankets, ladder | |
| `desk` | steel desk, drawers, papers, lamp, mug, chair | `chair = false`, `chairYaw` |
| `chair` | swivel chair | |
| `crate`, `cases` | strapped crate; a stack of three cases | `size`, `mat` |
| `shelf` | four-shelf rack with boxes | `seed` varies the contents |
| `labBench` | steel bench, microscope, jars, tray, clipboard | |
| `console` | control desk, toggles, three CRT monitors | `screens = false` for dead screens |
| `tank` | cylindrical specimen tank with murky fluid | `height`, `fluid = false` |
| `pump` | pump housing, motor, plinth, pipes, valve wheel, gauge | |
| `gurney` | med-bay gurney with instrument trolley | |
| `gasTanks` | four chained gas cylinders | |
| `vent` | wall duct mouth whose grate is its own child entity `grate` (blow it off in a scare) | `size` |
| `fluoro` | caged double fluorescent fixture (tubes `tubeA`/`tubeB`) | `off = true` for dead tubes |
| `wallLamp` | caged bulkhead lamp | `glow` = glowRed, glowAmber, glowTube, glowCold |
| `hangingBulb` | bare bulb on a cord (`bulb`) | `cord`, `glow` |
| `valveWheel`, `hatchRing` | brass valve wheel; bolted pressure-hatch ring for a doorway | `size` |
| `divingBell`, `submersible` | hero props for a dive bay and a sub dock | |
| `bodyBag`, `papers`, `cable`, `barrel`, `table`, `puddle` | dressing | |
Lower level: `B.part`, `B.box`, `B.pipe(parent, name, a, b, radius, material?)`, `B.group`, `B.quatYaw`, `B.quatAxis`, `B.quatMul`. Rooms and props call `B.part` through the table, so wrapping it reaches everything they make.
## Batching: `B.collect(fn, body)`
Every prop part is its own Model entity by default. To batch, build inside `B.collect`: each visible part goes to `fn(part)` instead, as `{ parent, name, mesh, center, size, rot?, material, shadows, tint? }` (`center`, `size`, `rot` local to `parent`, the room or prop group entity, which is still spawned and placed). Parts with a collider still spawn an entity carrying only the BoxCollider; invisible helper parts never reach `fn`.
```lua
local parts = {}
B.collect(function(p) table.insert(parts, p) end, function()
B.prop("locker", { 1.2, 0, 6 }, -90, root)
B.prop("desk", { -1, 0, 4 }, 0, root)
end)
-- merge `parts` by material into your own meshes or one quickGeometry Group
```
## Multiplayer
Everything is plain scene content built at author time and baked into the scene, so every player loads the same station. Put moving or scripted things (doors, lights that fail) on synced entities with the kits that drive them.
## Performance
A room is ~40–120 primitive entities; a 10-room level is ~1,900. Props share a handful of materials. Fixture glows are emissive and cast no light; add real Lights only where they matter and keep shadow-casting lights few.
## Known limits
- Props are built from primitives (boxes, cylinders, tori, capsules), not sculpted meshes. They read well in the dark; up close they read as stylised.
- Ramps are a rotated box (`B.box` with a `rot`), so stairs are not modelled step by step.
- Rooms are axis-aligned rectangles.
## 1.0.1
Props use lit materials instead of tints, so nothing shows in total darkness. Fixture glow follows its light.
## 1.0.2
Ships a test suite, `bulkheadKitTests`: every theme and prop builds, unknown names are refused, doorways open, the README example builds (all dry runs, nothing lands in your scene).
## 1.0.3
Surfaces no longer render black under a camera with `environment = "isolated"`: the triplanar materials shipped `metallic: 1`, so every surface took its metalness from the packed texture at full strength and reflected nothing where there is no environment. Painted bulkheads, concrete, ceiling panels, tiles, rubber, hazard paint and wood are now `metallic: 0`; the rusty grating 0.25, the painted hull 0.3, tread plate 0.45, rusted pipe 0.2, dark steel trim 0.55 (brass stays 1). New `B.collect(fn, body)` hands visible parts to the caller for batching instead of one Model entity per part (colliders still spawn), and rooms and props call `B.part` through the table so a wrapper reaches them. The version test reads the package.yaml beside the install, so it passes under deps/ and showcase/ too. Two new tests.
# scaresKit.catalog
Every scare in the library: id, label, intensity 1-5, tags, props, needs, a builder for its procedural props and its scriptedEventsKit beat recipe. Read by scaresKit.api and the Scare component. Add an entry here to add a scare.
# Apparition
A dark figure that exists only in a light's stutter. Link it to a LightBehavior (`light` = name or tag). While `armed`, when that light goes to flicker, short or restore, the figure shows in the lit frames (`showIn = "lit"`, a black shape against the light behind it) or the dark frames, for `window` seconds, then it is gone; `once` disarms it, `shown` counts showings. Every peer sees the same frames.
# Stalker
Turns a character into a horror monster. Put it on a synced entity and pick its kind (pursuer, shambler, lurker, lightshy, blind); it adds an aiKit Brain running the stalker brain with that kind's preset (bringing a navKit NavAgent and SecondWind health), builds and animates the creature's body on every screen, plays its sounds, sizes its hit volume for weaponsKit, and reports what it does through stalkerKit events. Fields: kind, lairGroup, active, sounds, volume; read-only mode, detail, target, hidden, pose, action.
# kinds
Every kind of stalker (pursuer, shambler, lurker, lightshy, blind) as plain data: an aiKit preset (senses, movement, health, combat) plus a stalker table of horror knobs (stalking distance and time, light tolerance, retreat and hide times, whether it dies, freezes when watched, grabs). Registers one aiKit preset per kind (stalker.<kind>). get, names, define (a new kind from a base) and tune (change a kind live). Reached through stalkerKit.api (kind, defineKind, tuneKind).
# Silhouette
A figure seen only as its shadow. Put it on an empty entity between a light and a wall: the figure (`figure`, `tall`, `crawler`, `hand`) is built from primitives on the `fk_shadowOnly` render layer, which each player's main camera skips while shadow maps still draw it. `path` ('x,y,z; ...' local offsets), `speed`, `loop`, `hideAtEnd`; set `playing` (or `Lights.silhouette(target, "play")`) to walk it, started at the same session time on every peer. `shadowOnly = false` shows it as a black figure.
# horrorKit.MonsterPen
Keeps one monster inside a box. Put it on an empty entity in the middle of a pen, set `monster` to the monster entity's name and `extents` to the pen's half-size: whenever the monster is found outside the box it is put back where it started (on the peer that owns it, with its navKit agent warped too). Build the pen with real walls the monster's nav map cannot cross (1 m thick or more on a 0.5 m grid map); this is the guarantee on top, so a visitor at the rail is never reached. The showcase room and the kit gallery use it on every pen.
```lua
local guard = entity.spawn("penGuard")
guard.position = vector.create(7, 1.5, 86)
guard.component.add("horrorKit.MonsterPen", { monster = "penMonster", extents = { x = 3.6, y = 3, z = 1.6 } })
```
Fields: `monster`, `extents`, `every` (seconds between checks). Event: `returned { monster }`.
# StalkerLair
Marks a vent, crawlspace or dark hole that stalkers slip into to hide and heal and come back out of. Put it on an entity standing on the walkable floor in front of the opening, its forward (-Z) pointing in. Fields: group (only stalkers with that lairGroup use it; empty = all), kind (vent or dark), open. Draws nothing.
# bulkheadKit.build
Builds rooms, corridors and procedural props for derelict sci-fi interiors from a scene build.luau: `room`, `prop`, `box`, `pipe`, `part`, `useTheme`. See the package README for every field and prop kind.
# LightBehavior
Drives the point `Light`, spot `Light` or `SpotLight` on its entity. `style` picks the behaviour (16: dyingFluorescent, fluorescent, candle, fireplace, swingingBulb, emergencyRed, alarmBeacon, strobe, lightning, sparking, breathing, brownout, sodiumWarmup, tvGlow, neonStutter, steady). The synced `state` (on, off, flicker, short, restore) with `stateAt` is what triggers set; `group` tags and `circuit` names address lights for `eerieLightsKit.api`. Meshes on the entity and under it get the light's colour x level in shader-data lane 2 (wear `eerieLightsKit.fixtureGlow` to glow). Options: `intensity`, `styleColor`, `sound`, `volume`, `hang` (swing cord length), `shadows` (auto / always / never), `thunderDelay`, `seed`.
# horrorKit.TorchStand
A light pickup and style switcher. Put it on any entity (a pedestal, a shelf, a hook on the wall): it adds an interactKit prompt, and the player who uses it gets that flashlightKit `style` in their hand, restored, charged to `charge` and switched on (`switchOn`). Only that player's light changes. It needs the player to carry a `flashlightKit.Torch` (the `HorrorDirector` gives every player one).
```lua
local stand = entity.spawn("lanternHook")
stand.position = vector.create(2, 1.1, 4)
stand.component.add("horrorKit.TorchStand", { style = "lantern" })
```
Fields: `style`, `label` (empty: "Take the oil lantern"), `switchOn`, `charge`, `range`, `promptHeight`. Event: `took { style }`. The showcase room and the kit gallery use it for their light pedestals.
# eerieLightsKit.styles
The 16 placed-light behaviours as deterministic functions of session time, a seed and time since switch-on, each with its colour, sounds and motion (swing, spin, jitter, sparks, thunder), plus `stateLevel` (the on / off / flicker / short / restore overlay) and `define(id, t)` for your own.
# flashlightKit.styles
The catalogue: `STYLES` (12 handheld light styles, each with kind, colour, intensity, range, cone half-angles, spill, lag, sway, swing, mount, battery, life, failure mode, visibility, model and sounds) and `BATTERIES` (11 battery / fuel types with curve, low threshold, rechargeable flag and inventory item id). `get`, `has`, `list`, `define(id, fields, base)`, `battery`, `defineBattery`.
# horrorKit.showcase
One call builds a compact, dark showcase room that shows the whole horror kit working, so you can see every part in your own world before you build a level with it. Call it from a scene's `build.luau`; the room is baked into the scene like anything else the build makes.
## The snippet
In a scene that already has a first-person player (a `PlayerPrototype` with a camera; give the camera `environment = "isolated"` and delete the new-world template's `lighting` entity, whose sky lights interiors even through an isolated camera, so the room is actually dark):
```lua
local Showcase = require("horrorKit.showcase")
function content()
-- ... your scene's own content and player setup ...
Showcase.build(nil, { at = { 40, 0, 0 } }) -- a 16 x 15 m room centred on x 40, z 0
end
```
Press Play and walk in through the doorway on the room's south side (x 37, z -7 in the example).
## What is in the room
| feature | made with | try it |
|---|---|---|
| dark bulkhead room, 16 x 15 x 3.4 m, doorway south | bulkheadKit `room`, `prop` | |
| three placed lights: a dying fluorescent over the middle, a swinging bulb over the desk, an emergency red lamp in the pen | eerieLightsKit `LightBehavior` (circuit `showcase`) | `require("eerieLightsKit.api").circuit("showcase", false)` kills them, `true` brings them back |
| three light pedestals on the west wall | `horrorKit.TorchStand` | E on one: your flashlight becomes that style (F toggles, V shakes, B swaps) |
| a scare on an area trigger | scaresKit `Scare` (`ventBurst`, repeats after 20 s) | step on the hazard mark |
| a note on the desk | loreKit `Lore` (note style) | E to read, J for the journal |
| a safe corner with a save terminal | horrorKit `SafeRoom` + `SaveTerminal` | E on the console: progress saved, light recharged, you respawn here |
| a monster pen | stalkerKit `Stalker` (`shambler`) behind a 0.9 m wall 1.2 m thick, a 2.2 m empty strip and a rail | it sees and hears you across the strip; its 2.1 m reach cannot get to the rail |
| a HorrorDirector (only when the scene has none) | horrorKit `HorrorDirector` (quietDread, grain70s, classic HUD, classic torch, no guns) | every player gets a torch and the HUD |
| a navKit map over the room | navKit `NavMap` | the monster walks on it |
| labels on every feature | engine `Text3D` on a dark plate | |
## Options (`Showcase.build(root, opts)`)
| option | default | meaning |
|---|---|---|
| `at` | `{ 0, 0, 0 }` | floor centre of the room (local to `root`, or world when `root` is nil) |
| `theme` | `"derelict"` | any bulkheadKit theme |
| `director` | `true` | add a HorrorDirector when the scene has none |
| `monster` | `"shambler"` | pursuer, shambler, lurker, lightshy, blind; `""` for an empty pen |
| `navMap` | `true` | bake a navKit map over the room (turn off when your scene bakes one over everything) |
| `scare` | `"ventBurst"` | any scaresKit scare id |
| `stands` | `{ "classic", "lantern", "uv" }` | flashlightKit styles on the pedestals |
| `labels` | `true` | the world-space labels |
| `name` | `"HorrorShowcase"` | the room's entity name |
Returns `{ root, center, pen, terminal, stands, scare, lore }`.
`Showcase.label(parent, name, pos, yaw, title, { sub, size, width, color, plate })` is the label helper the room uses: lit `Text3D` on a dark plate, readable in a pitch-black room. `yaw` 0 faces +z.
## Needs
horrorKit and the packages it stands on (flashlightKit, eerieLightsKit, scaresKit, scriptedEventsKit, loreKit, stalkerKit with aiKit and navKit, interactKit), plus bulkheadKit for the room itself.
## Known limits
- The room is axis-aligned (bulkheadKit rooms are); place it with `at`, it does not rotate.
- The monster is a real stalkerKit monster: a visitor who climbs the rail and the pen wall is in reach.
# bulkheadKitTests
Checks bulkheadKit without touching the open scene (every build is a dry run through the scene build runner): all six themes build a room, every prop kind builds, an unknown theme or prop is refused by name, a doorway opens the wall it was asked for, the README's first example builds, and `B.VERSION` matches `package.yaml`. It leaves the open scene, its entities and every material alone. Run with `tests.run("bulkheadKitTests")` in edit mode.
# bulkheadKit.mats
Every material bulkheadKit builds with by short name (`get(name)`), and the six themes that map surface roles (wall, wallLower, floor, ceiling, rib, pipe, trim, hatch) to them.
# horrorKit.HorrorDirector
Put one on any entity in a scene to make it a survival-horror game. Every style is a field: `pacing`, `look`, `palette` (tensionKit), `hud` (adds and drives a HorrorHUD on the same entity), `torch` (the flashlightKit style each player is given), `loadout` and `startAmmo` (horror weapons on weaponsKit), `music`, `debugDread`. Runs per player: equips the local player and calls `Horror.setup` / `Horror.tick` to wire torch, monsters, scares and dread together. Needs nothing beside it.
# HorrorHUD
Shows the horrorKit horror HUD to the local player of every engine. Put it on any entity of the scene (one is enough; it needs no sibling components). `style` switches the whole look with one change: `bare`, `minimal`, `classic`, `scifi`, `vhs`, `diegetic`. `showHealth`, `showAmmo`, `showLight`, `showKeys`, `showItems`, `showVignette`, `showMessages`, `showObjective`, `showSafe` and `showDread` (off by default) turn single elements off or on; `hideKitHuds` hides the kits' own HUD pieces while it runs; `scale` multiplies the automatic size.
```lua
entity.spawn("HUD").component.add(asset.resolve("horrorKit.HorrorHUD", "component"), { style = "vhs" })
```
Each player sees only their own health, ammo, light and keys. The work is done by `horrorKit.hud`; script lines, objectives and the safe badge go through it (`HUD.message`, `HUD.objective`, `HUD.setSafe`).
# horrorKit.SafeRoom
A box (`extents`, half-size in metres around the entity) where the local player is safe: dread pauses and drains, no scare fires, the HUD shows the safe marker and `label` is shown once on entry. With `blockMonsters` on, a stalker that follows a player inside breaks off and retreats. Put it on an empty entity in the middle of the room; pair it with a SaveTerminal.
# horrorKit.SaveTerminal
Something to use in a safe room (terminal, typewriter, tape deck). It adds an interactKit Interactable with `label`; using it saves the checkpoint `checkpoint` through saveKit, makes this the player's respawn point (a Lifeline SpawnPoint at `respawnOffset`), recharges their light if `recharge` is on, and shows "Progress saved". Put it on the entity the player looks at.
# horrorKit.Supply
A survival pickup: `kind` = ammo (spare rounds for the held horror weapon), firstAid or bandage (SecondWind heal by `amount`), or battery (flashlightKit battery of type `battery`). The player looks at it and presses interact. `perPlayer` (default) gives every player their own copy for co-op; off, the first taker gets it for everyone. Draws a small built-in model unless `model` is off. Needs nothing beside it (it adds its own Interactable).
# horrorKit.api
The wiring of the horror kit: `setup(opts)` connects flashlightKit, eerieLightsKit, scriptedEventsKit, scaresKit, tensionKit, loreKit, stalkerKit, weaponsKit and interactKit on each player's engine (light and noise to the monsters, threat and stimuli to dread, scares gated by dread pacing); `tick(dt)`, `setSafe`, `isSafe`, `message`, `objective`, `localBody`, `isMine`, `teardown`; and every part as a field (`Horror.Torch`, `Horror.Dread`, ...). Called by the HorrorDirector component and by game scripts.
# build-a-small-horror-level
A workflow that builds a small, playable first-person horror level with **horrorKit**, from a world with nothing in it to a level that has been walked from spawn to ending. It follows the guide *Build a small horror level from an empty world, step by step*, which ships next to it in horrorKit, and runs it as six stages:
1. **Survey**: reads the startup scene and its player, installs horrorKit and bulkheadKit if they are missing.
2. **Plan**: a route of four to six rooms with a keycard, a locked door, a safe room, a note, two or three scares and one monster vent, written to `/source/horror-level-plan.md`.
3. **Build**: rooms and props first; then the lamps and the game's kit (director, door, keycard, safe room, supplies) at the same time.
4. **Script**: the note, the scares, the pursuer released by the keycard, and the ending.
5. **Walk**: plays the level end to end with real input and fixes what fails, up to `maxWalks` rounds or until a walk finds nothing.
6. **Finish**: answers with the rooms, the scares, how many walks it took and what they found.
## Run it
```
zero workflow start --name horrorKit.build-a-small-horror-level --args '{"theme":"a flooded hospital ward"}'
zero workflow next --runner <who you are>
zero workflow answer --request <id> --value <result>
```
Arguments (all optional): `theme` (the setting, default a derelict deep-sea research station), `scene` (default the startup scene), `maxWalks` (default 3).
It needs horrorKit (which brings flashlightKit, eerieLightsKit, scriptedEventsKit, scaresKit, tensionKit, loreKit, stalkerKit and the kits under them) and bulkheadKit; the Survey stage installs them when the world lacks them.
# horrorKit.hud
The horror HUD for this engine's own player: one screen, six looks switched by one value (`bare`, `minimal`, `classic`, `scifi`, `vhs`, `diegetic`). It shows health (SecondWind), rounds in the gun and spare (weaponsKit), torch battery or fuel (flashlightKit), keys and keycards (interactKit), a hotbar strip (inventoryKit), a damage flash and low-health pulse, pickup and hint lines, the objective, a safe-room badge and an optional dread hint (tensionKit). Every kit is reached through a soft link, so a world without one simply shows nothing for it.
Who calls it: the `HorrorHUD` component starts it and ticks it (`HUD.start`, `HUD.step`, `HUD.stop`); the horrorKit api and any game script call `HUD.message`, `HUD.objective`, `HUD.setSafe`, `HUD.setStyle`.
```lua
local HUD = require("~horrorKit.hud")
HUD.setStyle("vhs")
HUD.message("Picked up a red keycard", 3)
HUD.objective("Restore power to the pump room")
HUD.setSafe(true) -- in a safe room
HUD.setElement("dread", true)
```
Calls: `setStyle`, `style`, `styles`, `setElement`, `setElements`, `elements`, `message`, `clearMessages`, `objective`, `currentObjective`, `setSafe`, `isSafe`, `setVisible`, `setScale`, `setTarget`, `setSource(kind, fn)`, `refresh`, `state`, `start`, `stop`, `step`, `isRunning`. Constants: `STYLES`, `ELEMENTS`, `DESCRIPTIONS`, `PALETTES`, `SCREEN` (`horrorKit_hud`), `LAYER` (39, under interactKit's prompts).
Cost: data is sampled ten times a second; the screen is rebuilt only when a shown value changes (the VHS tape clock once a second). Motion (ECG sweep, blinking, noise bands, pulses, fades) is CSS animation the engine runs. While running it hides weaponsKit's ammo panel, flashlightKit's meter, interactKit's carried strip (`setCarriedStrip`) and Lifeline's own player bar, and restores them on `stop`.
Layout: scale follows the shorter screen side (0.72 to 1.5) inside the safe area. On a touch screen it reads the engine's touch control rects, controlsKit's and weaponsKit's buttons, and leaves the lower corners to the stick and the action buttons.
# hudTests
Checks the horrorKit HUD without entering play: all six looks build a tree from sample data in full, low and dead states on desktop, tablet, upright phone and sideways phone layouts (touch layouts included); the one-value style switch and refusal of unknown names; bare shows no panels; the low-health pulse and death darkening; touch layouts leave the lower corners free; element switches; message stacking, cap and restart; objective set and clear (and bare turning it into a message); the safe badge; a custom data source. It does not read the kits' live data or the pixels; those are checked in play with captures.
# horrorKit.weapons
The survival-horror arsenal on weaponsKit: `revolver` (6 rounds, 4.2 s reload), `coachgun` (2 shells, 5 s reload) and `flaregun` (one flare). `define()` registers them as `horror_<name>`, `give(body, "revolver,coachgun")` equips a loadout, `addAmmo(body, n)` adds spare rounds. Used by the HorrorDirector and the Supply component.
# api
stalkerKit's one interface: local Stalkers = require("stalkerKit.api"). Spawn monsters and lairs, script encounters (sendTo, retreat, appearAt, holdHidden, setKind, setActive), wire noises (hearNoise) and torches (setPlayerLight), read threatFor(player) for a tension director, list/info/nearest, tune kinds, and listen to events (state, noticed, lost, attacked, hurt, retreated, appeared, died, noise).
# eerieLightsKit.api
The Lights front door: `local Lights = require("eerieLightsKit.api")`. `setState(target, state, delay?)`, `setGroup(tag, state)`, `setStyle`, `circuit(name, on, { stagger, delay, short, from })`, `silhouette(target, action)`, reads (`state`, `levelOf`, `list`, `styles`, `resolve`), `setQuality`, and `on("stateChanged", fn)`. Targets are an entity, id, name, glob or tag. Owner-authoritative: writes on other peers are sent to the light's owner. Also runs the shadow budget (only the nearest N shadow-casting lights keep shadows).
# flashlightKit.api
The Torch front door: `local Torch = require("flashlightKit.api")`. Story calls (`flicker`, `fail`, `restore`, `setCharge`, `set`, `toggle`, `setStyle`, `give`, `swap`), reads (`charge`, `isOn`, `switchedOn`, `lightOf`, `spares`, `visibility`, `lights`, `beams`, `list`), `setQuality`, events through `on(name, fn)`: toggled, batteryLow, batteryDead, swapped, failed, flash, charged. Owner-authoritative: calls made on another peer are sent to the torch's owner. Also holds the light model every peer computes (`levelOf`).
# scaresKit.api
The scare library's front door: place a scare with one call (props + cue), list and pick scares by intensity and tags, install a director gate, link tensionKit, make director-chosen slots, and hear every scare that lands. Also registers scaresKit's own scriptedEventsKit beats (jitter, swing, showTree, hideTree, soundPath, behind, waitUnseen, shadow, interact). `local Scares = require("~scaresKit.api")`.