How can I make a loop that keeps rotating a part but everytime the loop starts number will decrease?
Asked by
3 years ago Edited 3 years ago
Hey guys,
I know the title is confusing but it's really the best way I can explain. So I have a wheel that spins(keeps rotating) via changing it's CFrame angle, It's in a loop and I want to it slowly decrease it's rotation speed everytime the loop is done and it starts again.
Here's the script:
2 | script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles( 8.5 , 0 , 0 ) |
If you didn't understand, I basically want the script be like this:
1 | script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles( 8.5 , 0 , 0 ) |
3 | script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles( 8.4 , 0 , 0 ) |
5 | script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles( 8.3 , 0 , 0 ) |