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 11 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
11 years ago

timeofday

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

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

1local L = game.Lighting
2 
3while true do
4game.Lighting:setMinutesAfterMidnight(game.Lighting:getMinutesAfterMidnight()+1)
5wait(0.1)
6end