Day/Night Cycle: Wait

Channel:
Subscribers:
6,500,000
Published on ● Video Link: https://www.youtube.com/watch?v=qS_RoGS4AjA



Roblox
Game:
Roblox (2006)
Duration: 1:28
120,774 views
802


This videos continues the series on how to make a day/night cycle in ROBLOX using a Script. In this video we will cover how to animate the time of day changing using the wait() function.

Code used in this tutorial:

game.Lighting:SetMinutesAfterMidnight(4 * 60)
wait(1)
game.Lighting:SetMinutesAfterMidnight(5 * 60)
wait(1)
game.Lighting:SetMinutesAfterMidnight(6 * 60)
wait(1)
game.Lighting:SetMinutesAfterMidnight(7 * 60)
wait(1)
game.Lighting:SetMinutesAfterMidnight(8 * 60)
wait(1)
game.Lighting:SetMinutesAfterMidnight(9 * 60)
wait(1)
game.Lighting:SetMinutesAfterMidnight(10 * 60)
wait(1)
game.Lighting:SetMinutesAfterMidnight(11 * 60)
wait(1)
game.Lighting:SetMinutesAfterMidnight(12 * 60)







Tags:
ROBLOX
ROBLOX Studio
Studio
scripting
Lua
minecraft
games
videogame
video game
free game
online game
family game
MMO
game design



Other Statistics

Roblox Statistics For Roblox

Currently, Roblox has 219,354,368 views for Roblox across 928 videos. His channel uploaded over 7 days worth of Roblox videos, roughly 92.45% of the content that Roblox has uploaded to YouTube.