Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Script That changes Fog Distance?

Asked by 6 years ago

Well, I'm making a game, and it's REALLY annoying to have to deal with fog while I'm working and I just want it to turn on when I join the game, if anyone could tell me a script that I could just put into lighting or something that would change the FogEnd distance to 180, that would be great.

What I tried was:

script.Parent.FogEnd = 180

in the script but it didn't work ;-;

1 answer

Log in to vote
0
Answered by 6 years ago

Did you put the script inside the Lighting? Scripts NEVER work when put into storages, so you should put them into the Workspace or ServerScriptService and change it to:

game:GetService("Lighting").FogEnd = 180
0
It works Thank you! hoppyman360 -13 — 6y
1
You can accept the answer too, so we can both get reputation :) Konethorix 197 — 6y
0
Lol I don't know how hoppyman360 -13 — 6y
Ad

Answer this question