Advertisement
PvPsword666

Night Day Script

Mar 31st, 2020
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. local minutesAfterMidnight = 6 * 60 --Change the six to any number up to 24
  2.  
  3. while wait() do --Infinite loop
  4. game.Lighting:SetMinutesAfterMidnight(minutesAfterMidnight)--sets time of day to value of minutesAfterMidnight
  5. minutesAfterMidnight = minutesAfterMidnight + 1 -- Adds 1 to minutesAfterMidnight
  6. wait(1) --Change the speed of the day/night cycle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement