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

How do you make slowly rolling in Fog Script? thanks :0

Hello I'm new to scripting and I want to make a Fog script that slowly rolls in Fog, I need help with this script thanks.

local Fog = game.Lighting while Fog.FogEnd.magnitude > 250 do game.Lighting.FogEnd - 1 wait(.1) end

any help would be appreciated

4 comments

0

Please use a code block to format your code.

0

how?

0

there

1 answer

✓ Accepted answer

I guess you mean you want to change the Fogend.

Everything is explained in the script:

for i = 0, 500, 1 do --set the first number to what the fog will originally be at, set the second one to what value it will be at the end, and the third number is what number it will count up by
	game.Lighting.FogEnd = i --do not change this line of code
	wait(0.01) --set that number to how many seconds you want it to wait.
end

Here is how for loops work:

http://wiki.roblox.com/index.php?title=Loops&redirect=no#For

If this helped, please accept the answer. Thanks!

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