Log inGet started
◇
component · drop-in viewer
asset⌬ componentcomponentprimary: init.luau·originates fromworld 47b50fcd-5…

LightSwitch

A wall switch for a group of lights, shared with the room. Put it on the switch plate's entity (see `stations.switchModel`). Near it with empty hands, Interact (E / pad west / touch) flips the lights named in `lights` (comma-separated entity names) on or off for everyone; a playe…

by◐Deata·posted 3d ago
What it does

LightSwitch

A wall switch for a group of lights, shared with the room. Put it on the switch plate's entity (see stations.switchModel). Near it with empty hands, Interact (E / pad west / touch) flips the lights named in lights (comma-separated entity names) on or off for everyone; a player joining later sees the switch as it was left. The rocker child (<name>_rocker) tips to show the state.

Fields: lights, on (the state it starts in), range (metres), label (the room, as the prompt names it: "Lights off · Bedroom"). Not offered while a controller or the Game Boy is in hand.

A name in lights may be a Light entity (its intensity goes to 0 when off) or a fixture: any entity whose generated meshes carry emissive materials (a room.CeilingLight, a lamp, the LED strip of a room.KitchenUpper). A fixture's emissive materials go dark with the switch, so its bulb, diffuser and shade stop glowing and the traced GI stops picking them up as emitters.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

strict

me( ) → any

dimGlow(gen: any, key: string, dark: boolean) → void

argtypedescription
genany
keystring
darkboolean

apply( ) → void

set(on: boolean, at: number) → void

argtypedescription
onboolean
atnumber

localAvatar( ) → any

near(avatar: any) → boolean

argtypedescription
avatarany

showPrompt(on: boolean) → void

argtypedescription
onboolean

awake( ) → void

onDestroy( ) → void

update(_dt: number) → void

argtypedescription
_dtnumber

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.