How to continuously tween rotate a part?

I’m trying to rotate a part indefinitely. When I Play this code, the part rotates to the destination then rotates back the other way.

Is there a way to stop the part from flipping rotations?

local tweeningInfo = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 999999999, true, 0)
local tweenRotate = tweenService:Create(part, tweeningInfo, {Orientation = Vector3.new(0, part.Orientation.Y + 360,0)}) 
tweenRotate:Play()
2 Likes
local TweenService = game:GetService('TweenService')
local part = workspace.Part
local tweeninfo = TweenInfo.new(2.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In)
while true do
	TweenService:Create(part, tweeninfo, {CFrame = part.CFrame * CFrame.Angles(0, math.rad(180), 0)}):Play()
	wait(2.5)
end
2 Likes
local tweeningInfo = TweenInfo.new(5,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
function TweenCreate()
    local Props = {Orientation = Vector3.new(0, part.Orientation.Y + 360,0)}
    local tweenRotate = tweenService:Create(part,tweeningInfo, Props)
    tweenRotate:Play()
    return tweenRotate
end
while wait() do TweenCreate().Completed:Wait() end
4 Likes