I am making a script so when you walk inside a building it removes the fog (which I have completed) but the only issue is that it turn the fog off for everyone on the server. So I tried making it with LocalScript's and they did not work. Is there any other way to make this work. Also here are the scripts and everthing is placed in the workspace and the scripts are insde a part.
The off script:
function off()
game.Lighting.FogEnd = 100000
end
script.Parent.Touched:connect(off)
The on script:
function on()
game.Lighting.FogEnd = 200
end
script.Parent.TouchEnded:connect(on)

1 comment
To do it without filtering would require each client to repeatedly set the properties of lighting in a RenderStepped loop, like BlueTaslem (i think?) demonstrated in his local lighting hack some years ago.