How do I repeat a tween smoothly?

Hey all!

I’m trying to make this coin spin indefinitely, however, after its played once it cuts back to its original orientation and then replays the tween instead of just constantly spinning smoothly.

local ts = game:GetService("TweenService")

local tweenInfo = TweenInfo.new(
	2.5,
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.In,
	-1
)

local tweenGoal = {Orientation = Vector3.new(0,360,-90)}

local spinTween = ts:Create(coin, tweenInfo, tweenGoal)
spinTween:Play()

Rotating stuff using a tween is not an optimal way of doing it. What you’d do best is CFrame each coin in a RunService loop, or use 3 tweens (because of how tween paths are generated, must use 3 tweens which rotate the coin 120 degrees).

1 Like

Got it, ill use RunService, thanks a lot!

1 Like