Advertisement
Guest User

Day/Night script

a guest
Jul 19th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.19 KB | None | 0 0
  1. local daytime = 4
  2. -- how many minutes should day last (12 hrs)
  3.  
  4. while wait(1)do
  5.     game.Lighting.ClockTime = game.Lighting.ClockTime + (1/60) * (12/daytime)-- minute for an hour, 24 minutes
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement