Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is it possible to change lighting with a script?

Right now I have this script

local lighting = game:GetService("Lighting")
lighting.ClockTime = 0
lighting.FogEnd = 500

but it doesn't work. I don't see what could be wrong with it.

5 comments

0

Type of script? Parent?

0

Server Script inside of lighting

0

Put the script in serverscriptservice or workspace

0

Strongly recommend the former, that's what it's for

0

I put it there and it still doesn't work

1 answer

Put this exact script you made in Workspace. Also the script should be a Server Script, not Local. It works, I tried it out.

This discussion is preserved as it was. New answers, comments, and votes are closed.