generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Day and Night

Previous Thread :: Next Thread 
daniellb is not online. daniellb
Joined: 08 Dec 2010
Total Posts: 153
30 Nov 2014 03:17 PM
Making a RP game and need help making a script that will make it Day and Night ive tryed inserting this code

l = game:service("Lighting")
r = game:service("RunService")

while true do
l:SetMinutesAfterMidnight(l:GetMinutesAfterMidnight()+1
)
wait(1)
end


but it hasent been working help?
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
30 Nov 2014 03:24 PM
I have a GameTime script on my C9 preview
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
30 Nov 2014 04:07 PM
i have tried the :l:SetMinutesAfterMidnight(l:GetMinutesAfterMidnight()+1: type time script and they never work so now i just use :

while true do
game.Lighting.TimeOfDay = "06:00:00"
wait(10)
game.Lighting.TimeOfDay = "12:00:00"
wait(10)
game.Lighting.TimeOfDay = "18:00:00"
wait(10)
game.Lighting.TimeOfDay = "24:00:00" -- repeat as needed
wait(10)
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image