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

How Do I make a Day/Night script? [closed]

Asked by 10 years ago

How do i make a Day and Night script????

Closed as Not Constructive by Articulating

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by
Teeter11 281 Moderation Voter
10 years ago

timeofday

0
Its military time Teeter11 281 — 10y
Ad
Log in to vote
0
Answered by
ausmel105 140
10 years ago

Use this, the wait() defines how long each second lasts.

local L = game.Lighting

while true do
game.Lighting:setMinutesAfterMidnight(game.Lighting:getMinutesAfterMidnight()+1)
wait(0.1)
end