How can I make this Egg/Capsule rocking smoother?

https://gyazo.com/bd20c2ad90f99ee2c6bb22b4ff4ed2cb

The TweenTime is .05

local Tween = TweenInfo.new(TweenTime, Enum.EasingStyle.Back, Enum.EasingDirection.Out)
local Right = TweenService:Create(Capsule, Tween, Right)
local Left = TweenService:Create(Capsule, Tween, Left)
local End = TweenService:Create(Capsule, Tween, {Rotation = 0})

for i = 1, 25 do
	if IsEven(i) then
		Left:Play() else
		Right:Play()
	end
	wait(TweenTime)
	print("rotated")
end
End:Play()
wait()

This is the code, I just can’t seem to make it smoother. As you can see in the gif it’s somewhat rigid / jittery.

What is your tween time value?

If there is scripting involved, it goes in #development-support:scripting-support.

Maybe increase 25 to 60? :thinking:

I’m not entirely sure though to be honest.

If that doesn’t work, try decreasing the tween time.

Try reducing your tween time value and increasing the amount of iterations the loop does.

Try using in/out easing. Also make the distance it rotates shorter but the duration of each tween only a little less.

Have you tried just changing your TweenInfo and using one tween? There are arguments that take how many times the tween should repeat, if it should reverse through the tween when it reaches its goal and how long it should wait between each tween.