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

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

Asked by
iuclds 720 Moderation Voter
4 years ago

I need a script like

while true do
game.lighting.fogend = +1

but actually with thought

2 answers

Log in to vote
2
Answered by 4 years ago

No, use this:

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

Well tried,@EDLLT

0
Well, I could've used this but I thought that he wanted an infinite loop? EDLLT 146 — 4y
0
No, this is not an infinite loop. The loop stop if i == 25 gets one point every second Eternalove_fan32 188 — 4y
Ad
Log in to vote
1
Answered by
EDLLT 146
4 years ago

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

Answer this question