Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Script That changes Fog Distance?

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

✓ Accepted answer

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

3 comments

0

It works Thank you!

1

You can accept the answer too, so we can both get reputation :)

0

Lol I don't know how

This discussion is preserved as it was. New answers, comments, and votes are closed.