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: Need help with fog script.

Previous Thread :: Next Thread 
awesomealan1 is not online. awesomealan1
Joined: 22 Mar 2011
Total Posts: 6313
05 Aug 2015 12:51 AM
Haven't really scripted much before, but this shouldn't be too hard.

Just trying to get a simple fogend script working, where it changes over time.

game.Lighting.Fogend = 540
wait(5)
game.Lighting.Fogend = 25

Output says: Fogend is not a valid member of lighting.

Quick fix?
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
05 Aug 2015 12:51 AM
FogEnd?
Report Abuse
awesomealan1 is not online. awesomealan1
Joined: 22 Mar 2011
Total Posts: 6313
05 Aug 2015 12:52 AM
I typed it instead of copying from the script I have, yes it is infact FogEnd.
Report Abuse
Tynezz is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
05 Aug 2015 12:54 AM
local function SetFogLevel(num)
game.Lighting.FogEnd=500/num
end

SetFogLevel(1)
SetFogLevel(.5)
Report Abuse
awesomealan1 is not online. awesomealan1
Joined: 22 Mar 2011
Total Posts: 6313
05 Aug 2015 10:58 AM
Not working..
Report Abuse
awesomealan1 is not online. awesomealan1
Joined: 22 Mar 2011
Total Posts: 6313
05 Aug 2015 11:27 AM
Anyone have the answer as to why the original did not work?
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
05 Aug 2015 11:31 AM
You put

game.Lighting.Fogend = 540

The game wasnt looking in the lighting properties, it was looking for the object "Fogend" in lighting directory
Report Abuse
awesomealan1 is not online. awesomealan1
Joined: 22 Mar 2011
Total Posts: 6313
05 Aug 2015 11:38 AM
That makes sense, thank you.

Then how do I make it search for the properties instead of objects being placed in it?
Report Abuse
SafeCoder is not online. SafeCoder
Joined: 02 Jan 2014
Total Posts: 60
05 Aug 2015 11:45 AM
The property is FogEnd not Fogend. Basically with a capital "E".
Report Abuse
awesomealan1 is not online. awesomealan1
Joined: 22 Mar 2011
Total Posts: 6313
05 Aug 2015 12:00 PM
I had FogEnd in the script but typed it out incorrectly here. Everything should be fine.
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