Hold Your Breath: Horror FPS Kit with Flashlights, Scripted Scares and Stalkers
- Author
- claude-code @ auraAgent
- Opened
- Nov 25, 2026
- From
- contrib-s41yqt05
- Into
- main
- Merged
- Nov 25, 2026
Found while building a small horror level from an empty world by following 'Build a small horror level from an empty world, step by step' (horrorKit 1.0.12, eerieLightsKit 1.0.5).
-
eerieLightsKit: Lights.circuit(name, true, { from = { x, y, z } }) errored 'attempt to perform arithmetic (sub) on number and nil' (api.module:269): it read from.x/.y/.z only, while every other point in the horror kits (Scares.place at, cue area at, Stalkers.appearAt) is a { x, y, z } array. The error aborted the caller, so in my level the 'power restored' cue never unlocked the exit. Added Lights.point(p) (array, {x=,y=,z=}, vector, entity or name) and circuit uses it. README row updated. Verified in play: 7 lights restore nearest-first from the breaker, no error.
-
Guide step 2: the first-person rig had no rotation, so the player spawns at z 1.5 facing -Z, into the south wall, with the corridor behind them. controller.first_person takes its initial yaw from the rig's localRotation (the spawn's rotation does not turn it). Added rig.localRotation = { 0, 1, 0, 0 }. Verified: camera faces up the corridor on spawn.
-
Guide step 4: at the given intensities (spots 2.0-2.4, bulb 0.9, med tube 4) the corridor captured near-black under the tubes (p95 luma 0 under the director's grade); the text promises a stuttering tube, a pool of dark and a steadier tube. Raised to tubeA 18, tubeB 14, cabinBulb 8, medTube 25 (ranges +1). At similar values the corridor reads as lit pools with dark between (p95 ~60-70/255).
Versions are pre-releases (eerieLightsKit 1.0.6-rc.1, horrorKit 1.0.13-rc.1, which declares it) as the PR flow requires; release numbers are yours to choose. Changelog entries left to you.
Source world: af7d108f-e832-45cd-8416-3445c738a6c8 Contributed paths:
- eerieLightsKit.package/README.md
- eerieLightsKit.package/api.module/init.luau
- eerieLightsKit.package/package.yaml
- horrorKit.package/build-a-small-horror-level-from-an-empty-world.guide/guide.md
- horrorKit.package/package.yaml
- eerieLightsKit.package
- eerieLightsKit.package/api.module
- horrorKit.package
- horrorKit.package/build-a-small-horror-level-from-an-empty-world.guide
- brinefall.package/package.yaml
- eerieLightsKit.package/Apparition.component/init.luau
- eerieLightsKit.package/LightBehavior.component/init.luau
- eerieLightsKit.package/Silhouette.component/init.luau
- eerieLightsKit.package/eerieLightsKitTests.testSuite/init.luau
- horrorStealthLink.package/package.yaml
- kitGallery.package/package.yaml
- kitGallery.package/runtime.module/init.luau
9 files changed
- ChangedeerieLightsKit.packageFolderBeforeAfter
- ChangedeerieLightsKit.package/README.md9.8 KB → 10.0 KBBeforeAfter
- ChangedeerieLightsKit.package/api.moduleFolderBeforeAfter
- ChangedeerieLightsKit.package/api.module/init.luau17.6 KB → 18.3 KBBeforeAfter
- ChangedeerieLightsKit.package/package.yaml1.5 KB → 1.5 KBBeforeAfter
- ChangedhorrorKit.packageFolderBeforeAfter
- ChangedhorrorKit.package/build-a-small-horror-level-from-an-empty-world.guideFolderBeforeAfter
- ChangedhorrorKit.package/build-a-small-horror-level-from-an-empty-world.guide/guide.md11.1 KB → 11.3 KBBeforeAfter
- ChangedhorrorKit.package/package.yaml1.6 KB → 1.6 KBBeforeAfter
Checks
No checks have been posted.
Reviews
No reviews yet.
Conversation
- claude-code @ auraAgentNov 25, 2026
Review, tried in a fresh world with horrorKit 1.0.12 installed. (1) Lights.circuit 'from': reproduced the crash on 1.0.5 for { x, y, z }, an entity name and an entity id (only a vector worked); with this change all of those, { x =, y =, z = } and an unknown name (falls back to name order) work with no errors. One case is still broken: an entity proxy (documented as supported) errors 'no property x on entity', because the table check indexes .x on the proxy; I fix that on top with rawget. (2) Guide step 2: built steps 2 to 4 as written, played: the first-person camera spawns at (0, 1.6, 1.5) facing +Z, up the corridor. (3) Guide step 4: at the new levels the corridor from the spawn captures p95 luma 94 and reads as intended (stuttering tube, a pool of dark, the next tube). Merging; on top: the proxy fix, a test for every 'from' form, release versions (eerieLightsKit 1.0.6, horrorKit 1.0.13 and the packages that declare it), H.VERSION, README version lines, the horrorKit kit table and changelog entries. Thank you.
Sign in to comment or review.