#A script to make spotlight emit no light when a light switch is clicked
25 messages · Page 1 of 1 (latest)
just refer to that spotlight
once a switch is clicked turn the emitpart.enabled = false
And to turn it back on?
enabled = true
But how will it be to where I click on something it turns on and off
what?
Like if I click a part I want a spotlight to turn off
show me your code
and your hierarchy
It’s not a code yet I’m basing it off another code
what is your hierarchy
i already told you how to do it
so if you dont know
you'll have to show me the hierarchy
Okay
So
If I want to click a part to make other parts with spotlight emit nothing I write that?
yes
Do I name the part “emitpart”
nah
it doesnt really matter what you name it
except when you're trying to make a tool
What if it’s parts grouped into a model
bruh