Day/Night Cycle: Wait
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)
Other Videos By Roblox
2016-08-04 | Move Tool |
2016-08-04 | Multiple Traffic Lights |
2016-08-04 | Turning Off Lights |
2016-08-04 | Turning On Lights |
2016-08-04 | Scripting a Traffic Light |
2016-08-04 | For Loops |
2016-08-04 | While Loops |
2016-08-04 | Exploding Part |
2016-08-04 | Day/Night Cycle: Street Light |
2016-08-04 | Day/Night Cycle: Looping |
2016-08-04 | Day/Night Cycle: Wait |
2016-08-04 | Day/Night Cycle: Time of Day |
2016-08-04 | Variables in Scripts |
2016-08-04 | Adding a Script |
2016-08-04 | Brick Color |
2016-08-04 | Changing Properties |
2016-08-04 | Basic Math |
2016-08-04 | Variable Names |
2016-08-04 | Variables |
2016-08-04 | Intro to Scripting |
2016-07-27 | Community Spotlight: Office, Temple, Pokeball, Yacht, Animations |
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.