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

How do I make a Lighting script that works when I play my game?

I made a script for the lighting that looks like this,

MinutesAfterMidnight = 0 while true do MinutesAfterMidnight = MinutesAfterMidnight +1 game.Lighting:SetMinutesAfterMidnight(MinutesAfterMidnight) wait(.1) end

I also wanted the script to start at day time and to be a little longer at a time of 10 minutes to become night or day time.

1 answer

while wait(1) do
	game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight() + 0.0167)
end

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