|
| 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 |
|
|
| |
|
|
| 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
|
  |
| 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 |
|
|
| |
|
|
| 05 Aug 2015 11:27 AM |
| Anyone have the answer as to why the original did not work? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 05 Aug 2015 12:00 PM |
| I had FogEnd in the script but typed it out incorrectly here. Everything should be fine. |
|
|
| Report Abuse |
|
|