Making A Light Turn Off

Hi, I just started scripting on roblox not too long ago. I’m trying to make the lighting go dark 6 seconds after a gui is turned invisible. There is no physical object giving off light the light is coming from…(I honestly dont know where the light comes from if there is no light in the house). Anyways how would I make the light turn off.

2 Likes

We can’t really help if we don’t know where the light comes from.

I would have suggested using GetPropertyChangedSignal(“Visible”) on the GUI object and connect that to disabling the light.

I just went into lighting and turned off global shadows. So how do I make global shadows turn on? Also how do I make it almost completely dark because some light shows through.

Its a boolean, so in a script set it to true.

Enabled = true or visible = true?

GlobalShadows itself is a property of Lighting, so e.g Lighting.GlobalShadows = true

2 Likes