How to Make Night in Roblox Studio

From this article, you will learn how you can make a permanent and very long night in Roblox Studio. And we will also analyze some tricks that will allow you to make a rapidly changing time of day.

Recommended Videos

How to Make a Very Long Night in Roblox Studio

First of all, you need to change the time of day. To do this, click on Lighting, and in the bottom panel, in the Data tab, change the TimeOfDay line. Set any night time, for example, 23:30.

After that, the day will be replaced by night and the moon will appear in the sky.

Then hover over Workspase, press the Buttons in Roblox Studio and add a script (for a quick search, enter Script in the search bar).

Click on Script and paste this code into it:

while wait(10000) do

game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight()+1)

end

Done, you will have an almost endless night.

RELATED: How to Add Music in Roblox Studio

How to Make a Rapidly Changing Time of Day

In order to make a rapidly changing time of day (day and night will last a few seconds), you need to attach the Script to the Workspase in the same way as in the previous example and paste this code into it:

while wait(0.00001) do

game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight()+1)

end

In this case, night and day will replace each other very quickly. This trick can come in handy if you want to make a cool map.

related content
Read Article Goddess Of Victory: NIKKE Codes (April 2024)
girls from goddess of victory NIKKE
Read Article Subway Surfers Promo Codes
Read Article SOULS Codes
SOULS codes
Read Article Rocket League Codes
Rocket League Free Codes 2020
Read Article Pokémon Scarlet and Violet Trade Codes
Pokemon Scarlet and Violet logo
Related Content
Read Article Goddess Of Victory: NIKKE Codes (April 2024)
girls from goddess of victory NIKKE
Read Article Subway Surfers Promo Codes
Read Article SOULS Codes
SOULS codes
Read Article Rocket League Codes
Rocket League Free Codes 2020
Read Article Pokémon Scarlet and Violet Trade Codes
Pokemon Scarlet and Violet logo

Write A Comment

How to Make Night in Roblox Studio

Comments are on moderation and will be approved in a timely manner. Please read the following rules before commenting:

  • All comments must be on topic and add something of substance to the post
  • No swearing or inappropriate words
  • No asking or begging for anything free
  • Do not attempt to start a poll in the comments
  • Comments in all CAPS will be removed
  • We reserve the right to remove a comment for any reason
  • Do not impersonate a staff member or influencer

This site uses Akismet to reduce spam. Learn how your comment data is processed.