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 » Scripting Helpers
Home Search
 

Use local lighting to control fog?

Previous Thread :: Next Thread 
doneyes is online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
29 Oct 2013 08:41 PM
I know I can control properties such as time, but can I control fog too? How would that work?
Report Abuse
ForceSky is not online. ForceSky
Joined: 30 Jul 2012
Total Posts: 2379
29 Oct 2013 08:41 PM
Local lighting? Explain please...
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Oct 2013 08:41 PM
local lighting is glitchy, but it would work the same way
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
29 Oct 2013 08:43 PM
You can control all the properties of lighting with 'Local Lighting'
Hence, local _lighting_
Report Abuse
DaMrNelson is not online. DaMrNelson
Joined: 27 Jul 2009
Total Posts: 4405
29 Oct 2013 08:46 PM
@18cwatford
Wat? Local lighting is not defined by local variables, which are used with scopes (no, not gun scopes). It works (or at least, this is how the method I know works) because every client is setting the values of Lighting every single frame, meaning that the Lighting info sent by the server is being over-written by the client. However, using a "local" variable will not change any uses of lighting.

Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
29 Oct 2013 08:49 PM
@Nelson
Local Lighting is a glitchy way to have different lighting for each player, thanks to sever latenancy. Pm me if you want to know a little more about how it works cause I don't feel like explaining something on the forum.
Report Abuse
DaMrNelson is not online. DaMrNelson
Joined: 27 Jul 2009
Total Posts: 4405
29 Oct 2013 08:50 PM
@18cwatford
I just explained it, actually... :3
Anywho, apologies. By the way you said it, you made it sound like you were saying that you could achieve local lighting by simply going "local var = game.Lighting" .-.

Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson
Report Abuse
MHebes is not online. MHebes
Joined: 04 Jan 2013
Total Posts: 2278
29 Oct 2013 09:56 PM
Last I checked, local lighting was accomplished by parenting a (or the, can't remember) Lighting object to the Player's camera, or something.
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
29 Oct 2013 09:58 PM
One does not simply parent a server to another object.
Report Abuse
MHebes is not online. MHebes
Joined: 04 Jan 2013
Total Posts: 2278
29 Oct 2013 10:03 PM
I definitely accomplished it this way a long time ago.
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
29 Oct 2013 10:59 PM
Wait, so how do you accomplish local lighting?
Report Abuse
MHebes is not online. MHebes
Joined: 04 Jan 2013
Total Posts: 2278
29 Oct 2013 11:06 PM
Something something camera something something...?
Report Abuse
DaMrNelson is not online. DaMrNelson
Joined: 27 Jul 2009
Total Posts: 4405
29 Oct 2013 11:18 PM
I am sorry that I cannot provide an example, as I am on my phone at the moment. However, I will make this VERY simple for you:

Make a LocalScript in StarterPack
Make a while true do loop
Change EVERY property of lighting to what you want it to be (you don't NEED to do every property, but it makes it simpler to explain). Example: game.Lighting.FogEnd = 100
Add a wait() (with no number between your brackets). If it seems stuttery, put the wait() right after the loop, and before you change any settings.
Add your end

Apologies if I have any typos, my phone is annoying.
Report Abuse
DaMrNelson is not online. DaMrNelson
Joined: 27 Jul 2009
Total Posts: 4405
30 Oct 2013 10:22 AM
I'm on a computer now. I recommend that you use this script, as it will do the majority of the work for you: http://www.roblox.com/--item?id=103185990
Simply follow the instructions in the LocalScript, and you'll have local lighting in no time.

Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson
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