How to Make a Day/Night Cycle in Roblox Studio

preview_player
Показать описание
#roblox #robloxstudiotutorial #robloxstudio #robloxscript

In this video, I explain how to make a Day and Night cycle in Roblox Studio.

script:
while wait(0.1) do
game.Lighting.ClockTime += 0.1
end
Рекомендации по теме
Комментарии
Автор

For those who dk how to go to description or don’t want too *idk why but ok*
It is:
while wait(0.1) do
game.Lighting.ClockTime += 0.1
end

Edit: btw ty for showing this

CamixAxo
Автор

whenever i start the game it doesnt work and sun is stuck can u help me with that?

darknezzgg
Автор

Get a script in workspace, then copy this: while true do
game.Lighting.TimeOfDay = "7:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "8:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "9:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "10:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "11:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "12:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "13:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "14:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "15:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "16:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "17:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "18:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "19:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "20:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "21:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "22:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "23:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "24:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "1:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "2:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "3:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "4:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "5:00:00"
wait(0.1)
game.Lighting.TimeOfDay = "6:00:00"
wait(0.1)
end

nottele