How would I loop this tween?

Basically, I am trying to make a Fan gui, where it will rotate, and repeat.

local Fan = script.Parent
local Tween = game:GetService("TweenService")

local tweenInfo = TweenInfo.new(5)

Fan.Rotation = 0

local tween1 = Tween:Create(Fan, tweenInfo, {Rotation = (360)}):Play()











How would I loop this? Thanks.

I think the 4th one might be what you’re looking for.


(Put a -1 so it loops forever.)

I added the -1, it stops the tween for some reason.

Should look like this:

local Fan = script.Parent
local Tween = game:GetService("TweenService")

local tweenInfo = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, -1)

Fan.Rotation = 0

local tween1 = Tween:Create(Fan, tweenInfo, {Rotation = (360)}):Play()