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

How do i make fogend and other things add on then subtract?

I need a script like

while true do
game.lighting.fogend = +1

but actually with thought

2 answers

✓ Accepted answer

No, use this:

for i = 1, 25,1 do
     game.Lighting.FogEnd=game.Lighting.FogEnd+1
end

Well tried,@EDLLT

2 comments

0

Well, I could've used this but I thought that he wanted an infinite loop?

0

No, this is not an infinite loop. The loop stop if i == 25 gets one point every second

There you go bud I prefer using repeat wait() since it uses less memory.

repeat wait()
	game.Lighting.FogEnd=game.Lighting.FogEnd+1
until nil -- Change it to something if you wanted to be limited

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