Help with this script?
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
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:
2 | game.Lighting.FogEnd = 100000 |
4 | script.Parent.Touched:connect(off) |
The on script:
2 | game.Lighting.FogEnd = 200 |
4 | script.Parent.TouchEnded:connect(on) |