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

How do i completely reverse this for loop?

Asked by 10 years ago

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

Log in to vote
0
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

You could make it count backwards, like

for i = 1,0,-0.15 do
Ad

Answer this question