vinboi
|
  |
| Joined: 29 Jul 2012 |
| Total Posts: 1278 |
|
|
| 07 May 2016 04:55 PM |
http://wiki.roblox.com/index.php?title=Making_a_Day/Night_Cycle
I've even copied and pasted the entire code for time change and turning on and off of a lamp but it doesn't work. The code even has a syntax error. Is there a reason why it doesn't work?
|
|
|
| Report Abuse |
|
|
| |
|
|
| 07 May 2016 04:56 PM |
| Wait. This part of the wiki isn't cut off. |
|
|
| Report Abuse |
|
|
vinboi
|
  |
| Joined: 29 Jul 2012 |
| Total Posts: 1278 |
|
|
| 07 May 2016 04:57 PM |
17:53:51.522 - FormFactor is deprecated. You should no longer use this property. 17:53:51.530 - FormFactor is deprecated. You should no longer use this property.
|
|
|
| Report Abuse |
|
|
vinboi
|
  |
| Joined: 29 Jul 2012 |
| Total Posts: 1278 |
|
|
| 07 May 2016 04:59 PM |
lightPart = game.Workspace.LightPart minutesAfterMidnight = 0 while true do minutesAfterMidnight = minutesAfterMidnight + 10 game.Lighting:SetMinutesAfterMidnight(minutesAfterMidnight) wait(.1) if game.Lighting:GetMinutesAfterMidnight == 6 * 60 then -- checks for 6AM lightPart.Material = Enum.Material.Plastic lightPart.PointLight.Enabled = false end if game.Lighting:GetMinutesAfterMidnight == 18 * 60 then -- checks for 6PM lightPart.Material = Enum.Material.Neon lightPart.PointLight.Enabled = true end end
ERROR: 17:59:29.821 - ServerScriptService.DayNight:8: function arguments expected near '=='
|
|
|
| Report Abuse |
|
|
|
| 07 May 2016 04:59 PM |
thst's a warning not an error thogh
|
|
|
| Report Abuse |
|
|
jojo6565
|
  |
| Joined: 04 Feb 2011 |
| Total Posts: 245 |
|
|
| 07 May 2016 05:00 PM |
^ That's a warning, Not an error.
I seldom forum. |
|
|
| Report Abuse |
|
|
|
| 07 May 2016 05:00 PM |
game.Lighting:GetMinutesAfterMidnight()
you need parentheses
|
|
|
| Report Abuse |
|
|
vinboi
|
  |
| Joined: 29 Jul 2012 |
| Total Posts: 1278 |
|
|
| 07 May 2016 05:01 PM |
17:59:29.821 - ServerScriptService.DayNight:8: function arguments expected near '=='
This is a warning, its in red though
|
|
|
| Report Abuse |
|
|
| |
|
jojo6565
|
  |
| Joined: 04 Feb 2011 |
| Total Posts: 245 |
|
|
| 07 May 2016 05:01 PM |
^ Warnings are orange. Errors are red.
I seldom forum. |
|
|
| Report Abuse |
|
|
vinboi
|
  |
| Joined: 29 Jul 2012 |
| Total Posts: 1278 |
|
| |
|