Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago
Edited 7 years ago

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

Log in to vote
0
Answered by 7 years ago
while wait(1) do
    game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight() + 0.0167)
end
Ad

Answer this question