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
|
  |
| 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
|
  |
| 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 |
|
|