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
 

Re: Local lighting.

Previous Thread :: Next Thread 
GuestCapone is not online. GuestCapone
Joined: 19 Oct 2012
Total Posts: 1928
09 Jan 2013 02:19 PM
According to BLOBBYBLOB I can create a simple local lighting script using a local script... So I tried it out for myself, it works...

How ever when I try adding a loop, it doesn't respond or send a output out.

for i do, 1, .5
brightness = i;
game.Lighting.Changed:connect(function()
game.Lighting.Brightness = brightness;
end
end)

Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
09 Jan 2013 02:23 PM
Local lighting is currently impossible. There used to be a small 'hack' to have a client-side lighting service for each player, but that doesn't work anymore.

However, after my stressing local lighting on the devs for the past two years, it sounds like they might actually consider doing it after focusing on having tons of parts in one game.
Report Abuse
Monkey727 is not online. Monkey727
Joined: 12 Jan 2009
Total Posts: 969
09 Jan 2013 02:32 PM
I've actually been working on a system to create local lighting, Or at least a fake version of it, Including skyboxes, time and fog.
Report Abuse
GuestCapone is not online. GuestCapone
Joined: 19 Oct 2012
Total Posts: 1928
09 Jan 2013 02:41 PM
Well thats what I thought, but its possible.

Blobby has it in his game:
http://www.roblox.com/Rage-Mountain-III-place?id=29121215

I thought it was a GUI, but he clear states in his PM " No, local scripts aren't allowed to change the server lighting. It'll change it for the client, then the server will reject the change and try to change it back. "
Report Abuse
BlueTaslem is not online. BlueTaslem
Joined: 11 May 2008
Total Posts: 11060
09 Jan 2013 02:59 PM
I came up with it (both times, this time anew).

http://www.roblox.com/LocalLighting-place?id=100288339

Un copy locked, there you go.
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
09 Jan 2013 03:39 PM
Huh, that's quite the interesting hack you've figured out there
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
09 Jan 2013 03:44 PM
I understand how his method works, but it still confuses me.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
09 Jan 2013 03:44 PM
Local lighting ain't impossible

brightness = .5
game.Lighting.LightingChanged:wait()
game.Lighting.Brightness = brightness;


Not sure what you want :P
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
09 Jan 2013 03:48 PM
It seems like it shouldn't work. Apparently Changed fires before anything is actually rendered in. Or Lua events connected must have enough time to execute before it switches between updating and drawing.
Report Abuse
BlueTaslem is not online. BlueTaslem
Joined: 11 May 2008
Total Posts: 11060
09 Jan 2013 04:03 PM
Yep, it surprised me too.
Report Abuse
GuestCapone is not online. GuestCapone
Joined: 19 Oct 2012
Total Posts: 1928
09 Jan 2013 05:21 PM
See its possible..
Back to the script.. I'm not good with loops... What would be the correct answer for the " for i = 1, .5 do " loop?
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
09 Jan 2013 05:22 PM
wat do title fix
Report Abuse
GuestCapone is not online. GuestCapone
Joined: 19 Oct 2012
Total Posts: 1928
09 Jan 2013 06:18 PM
....
Not even helpful.
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
09 Jan 2013 06:22 PM
for i = 1, 5 do
--stuff
end
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
09 Jan 2013 06:23 PM
Ooops,
for i = 1, .5 do
--stuff
end
Report Abuse
angelinafm is not online. angelinafm
Joined: 10 Apr 2011
Total Posts: 134
09 Jan 2013 06:29 PM
"Ooops,
for i = 1, .5 do
--stuff
end"

Errors. You'd have to put this:


for i = 1, .5,-.1 do
--stuff
end

And replace .1 with whatever increment you want.
Report Abuse
GuestCapone is not online. GuestCapone
Joined: 19 Oct 2012
Total Posts: 1928
09 Jan 2013 06:38 PM
Thanks.
Report Abuse
RubiksCubix is not online. RubiksCubix
Joined: 04 Dec 2009
Total Posts: 4243
09 Jan 2013 06:55 PM
I have been trying to do this myself, to no avail.
Report Abuse
GuestCapone is not online. GuestCapone
Joined: 19 Oct 2012
Total Posts: 1928
09 Jan 2013 07:02 PM
Ask blobby... He got it done.
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
09 Jan 2013 07:23 PM
I hope the mods actually implement a Local Lighting so that there's no need to hack one. Crazy, keep asking them, you're someone they'll actually listen to.
Report Abuse
GuestCapone is not online. GuestCapone
Joined: 19 Oct 2012
Total Posts: 1928
09 Jan 2013 09:05 PM
Wait how's that a hack?
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
09 Jan 2013 09:28 PM
People confuse the definition of a 'hack.' Technically any computer code is hacking, since hacking is technically manipulating a computer to do what you want by some sort of logical technique.
Report Abuse
GuestCapone is not online. GuestCapone
Joined: 19 Oct 2012
Total Posts: 1928
09 Jan 2013 09:44 PM
ah thank makes sense.

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