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

I'm new to loops, what did i do wrong?

Asked by
iNicklas 215 Moderation Voter
8 years ago
for i=1, 10 +1 do wait(0.25)

gui.ExtentsOffset = Vector3.new(0,4,0)

end

I'm trying to make this:



gui.ExtentsOffset = Vector3.new(0,4,0) wait(0.25) gui.ExtentsOffset = Vector3.new(0,5,0) wait(0.25) gui.ExtentsOffset = Vector3.new(0,6,0)

And so on

1 answer

Log in to vote
0
Answered by 8 years ago
for i=1, 10 do wait(0.25) -- 10+1 is 11

gui.ExtentsOffset = Vector3.new(0,3+i,0)

end
Ad

Answer this question