I am trying to make a nice number tween service. Like so.
for a=from,to do
set.Rotation=from+1
wait()
end
I want to be able to have the number start slowly, speed up, and slow down before stopping.
I like the curve but I want to be able to start with a custom number, curve, and stop at the final number in a transition.
My brain hurts after attempting to Google this question.
Like this..
Where a would be the value to loop set the rotation of the gui? and (0,from) would be the start and (1,to) would be the end.

4 comments
Is it proven to be more script efficent to do this '' local sin,rad=math.sin,math.rad ''
I can't get it to rotate the other direction at all tries. I also cant go from bigger to smaller.
It's insignificant how much more efficient it is to declare library variables on the stack. It just makes it easier to read. To make it rotate in the other direction,
tohas to be smaller thanfrom.For some reasons, I can tell when going from a bigger value to smaller, it starts right away, not smoothly.. Sometimes its reverse.