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: Why isn't this official tutorial working?

Previous Thread :: Next Thread 
vinboi is not online. 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
GetTheJobDone is not online. GetTheJobDone
Joined: 20 Apr 2016
Total Posts: 3008
07 May 2016 04:55 PM
yo didn't post the output


Report Abuse
jtrobloxian is not online. jtrobloxian
Joined: 10 Jul 2013
Total Posts: 2274
07 May 2016 04:56 PM
Wait. This part of the wiki isn't cut off.
Report Abuse
vinboi is not online. 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 is not online. 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
GetTheJobDone is not online. GetTheJobDone
Joined: 20 Apr 2016
Total Posts: 3008
07 May 2016 04:59 PM
thst's a warning not an error thogh


Report Abuse
jojo6565 is not online. 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
GetTheJobDone is not online. GetTheJobDone
Joined: 20 Apr 2016
Total Posts: 3008
07 May 2016 05:00 PM
game.Lighting:GetMinutesAfterMidnight()

you need parentheses


Report Abuse
vinboi is not online. 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
GetTheJobDone is not online. GetTheJobDone
Joined: 20 Apr 2016
Total Posts: 3008
07 May 2016 05:01 PM
see my reply


Report Abuse
jojo6565 is not online. 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 is not online. vinboi
Joined: 29 Jul 2012
Total Posts: 1278
07 May 2016 05:02 PM
Thank you, it works


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