Ad
Log in to vote
2

Local Lighting

Asked by
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 answers

Log in to vote
4
Answered by 7 years ago

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
Ad
Log in to vote
1
Answered by 7 years ago

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
Log in to vote
0
Answered by 7 years ago

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
Log in to vote
-1
Answered by 7 years ago

Place it in the camera.

Answer this question