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

How do i completely reverse this for loop?

for i = 0, 1, 0.15 do LAW.C0 = CFrame.Angles(math.rad(150*i),0,0) wait() end

It's a basic animation, and I wish to reverse the loop also reversing the animation.

1 answer

You could make it count backwards, like

for i = 1,0,-0.15 do

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