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

How do I simplify this so it isn't a long list and just runs from tween1 to week17 in a few lines?

Asked by 4 years ago
a = 0.6
while true do
wait(a)
tween1:Play()
wait(a)
tween2:Play()
wait(a)
tween3:Play()
wait(a)
tween4:Play()
wait(a)
tween5:Play()
wait(a)
tween6:Play()
wait(a)
tween7:Play()
wait(a)
tween8:Play()
wait(a)
tween9:Play()
wait(a)
tween10:Play()
wait(a)
tween11:Play()
wait(a)
tween12:Play()
wait(a)
tween13:Play()
wait(a)
tween14:Play()
wait(a)
tween15:Play()
wait(a)
tween16:Play()
wait(a)
tween17:Play()
wait(a)
end

2 answers

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago
local a = 0.6
local v = 1

while true do
    wait(a)
    tween..v:Play()
    v = v + 1
        if v == 18 then 
        break
    end
end

If this helps don't forget to accept as answer

0
thank u sm but it says theres an error on the word tween "incomplete statement: expected assignment or a function call" ATRGuestServices 5 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

*tween

Answer this question