2

# Local Lighting

Axstin 55
7 years ago

I've heard about Local Lighting, never got around to messing with it. How does it work?

0
Where have you heard about it ? Hippalectryon 3 — 7y
0
I've seen it in games, there's been forum posts about it, etc. Why? Axstin 55 — 7y
1
Is my answer good enough ? Hippalectryon 3 — 7y

4

Oh If you mean 'how to make a light visible for a player only', just place it in its own Camera

## EDIT

You need to use the .Changed event on Lighting

Lighting.Changed:connect(function()
--- set the lighting properties for the player in a localscript
end)


That will fire a lot per second, but it works :)

0
No, I'm talking about Local Lighting like changing the time of day or ambient for one player, etc. Axstin 55 — 7y
0
Wouldn't setting lighting properties when .Changed is fired still have Lighting replicate to server? Axstin 55 — 7y
0
Well, due to some 'bug' it works Hippalectryon 3 — 7y
0
I think roblox might of fixed this bug. Axstin 55 — 7y
1

Crazyman32 has made a respectable script of this public. Here it is: http://www.roblox.com/Localized-Lighting-item?id=103185990

0
So I guess this is taking advantage of a bug? Axstin 55 — 7y
0
Indeed Hippalectryon 3 — 7y
0

I believe with the use of .FilteringEnabled you have the ability to have local lighting along with anything else.

Workspace.FilteringEnabled = true;

0
I tried this, the client's Lighting still replicated to server. :c Axstin 55 — 7y