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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Can someone help me with this?

Previous Thread :: Next Thread 
CrakTheRaven is not online. CrakTheRaven
Joined: 25 Dec 2009
Total Posts: 13410
28 Dec 2011 07:44 PM
Alright, so, in the script below, the time of day does not change, nor does the fog, although the print() shows.

What am I doing wrong?


------[Variables]-------
print("CrakTheRaven's Time/Fog Script Loaded")
time = game.Lighting.TimeOfDay
x = 5 -- Amount of time, in seconds. 120 = 2 minutes
FogStart = game.Lighting.FogStart
FogEnd = game.Lighting.FogEnd
Brightness = game.Lighting.Brightness
-----------------------------------
while true do
time = 15
wait(x)
time = 16
wait(x)
time = 17
wait(x)
time = 18
wait(x)
print("Fog Loading") -- Fog starting to appear/Brightness dimming
time = 19
FogStart = 10
FogEnd = 1000
Brightness = .9
wait(x)
print("Fog Thickening") -- Fog getting thicker. Maybe...adjust?
time = 20
FogStart = 10
FogEnd = 700
Brightness = .8
wait(x)
print("Fog MOAR THICKERRRR") -- ASFASDFASFASF
time = 21
FogStart = 10
FogEnd = 600
Brightness = .6
wait(x)
print("okayenoughthickenmuch") -- dang too much x_x
time = 22
FogStart = 10
FogEnd = 500
Brightness = .5
wait(x)
time = 23
print("FogEnd")
wait(x)
time = 24
wait(x)
time = 1
wait(x)
time = 2
wait(x)
print("Fog going away. :(") -- awww
time = 3
FogStart = 10
FogEnd = 600
Brightness = .6
wait(x)
time = 4
FogStart = 10
FogEnd = 700
Brightness = .8
wait(x)
time = 5
FogStart = 10
FogEnd = 1000
Brightness = .9
wait(x)
print("Fog gone. :(")
time = 6
FogStart = 10
FogEnd = 1000000
Brightness = 1
wait(x)
print("Script over, reloading")
end
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
28 Dec 2011 07:45 PM
Tl;dr

http://www.roblox.com/Part-Generator-Plugin-V3-item?id=68342522
Report Abuse
CrakTheRaven is not online. CrakTheRaven
Joined: 25 Dec 2009
Total Posts: 13410
28 Dec 2011 07:45 PM
>because this is such a long script.


Your a lovely helper. :)
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
28 Dec 2011 07:45 PM
Ty.

http://www.roblox.com/Part-Generator-Plugin-V3-item?id=68342522
Report Abuse
CrakTheRaven is not online. CrakTheRaven
Joined: 25 Dec 2009
Total Posts: 13410
28 Dec 2011 07:46 PM

q_q
Report Abuse
izzatnasruna is not online. izzatnasruna
Joined: 09 Jun 2009
Total Posts: 1927
28 Dec 2011 07:49 PM
What are you trying to do?
Report Abuse
CrakTheRaven is not online. CrakTheRaven
Joined: 25 Dec 2009
Total Posts: 13410
28 Dec 2011 07:51 PM
Basically, the start of the script would have the time at 14. Throughout the script, I want the time to loop all the way to 13, changing brightness and fog as time goes on.

The ending isn't done, but nevertheless, it doesn't change any of the values I wish for it to change.
Report Abuse
CrakTheRaven is not online. CrakTheRaven
Joined: 25 Dec 2009
Total Posts: 13410
28 Dec 2011 07:58 PM
Bump.
Report Abuse
izzatnasruna is not online. izzatnasruna
Joined: 09 Jun 2009
Total Posts: 1927
28 Dec 2011 08:09 PM
Change 'time' to 'game.Lighting.TimeOfDay = x..":00:00"
Change 'FogStart' to 'game.Lighting.FogStart'
Change 'FogEnd' to 'game.Lighting.FogEnd'
Change 'Brightness' to 'game.Lighting.Brightness'
Report Abuse
CrakTheRaven is not online. CrakTheRaven
Joined: 25 Dec 2009
Total Posts: 13410
28 Dec 2011 08:13 PM
So variables won't work? ;v
Report Abuse
izzatnasruna is not online. izzatnasruna
Joined: 09 Jun 2009
Total Posts: 1927
28 Dec 2011 08:15 PM
YOUR variables don't work.
You're just saving numbers. Not UserData.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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