Tween color to choosen colors

Is it possible for me to make a tween that it tween the color of something to red then purple then red again and it loops itself?

1 Like

You can do this with while true loops.

local TweenService = game:GetService("TweenService")

local tweenInfo = TweenInfo.new(.5) -- tweeninfo
local part = workspace.Part

local redTween = TweenService:Create(part, tweenInfo, {Color = Color3.fromRGB(196, 40, 28)}) -- create a tween for red
local purpleTween = TweenService:Create(part, tweenInfo, {Color = Color3.fromRGB(89, 34, 89)}) -- create a tween for purple

while true do
    redTween:Play() -- tween the part's color to red
    redTween.Completed:Wait() -- wait until the tween is finished

    purpleTween:Play() -- tween the part's color to purple
    purpleTween.Completed:Wait() -- wait until the tween is finished again
end
2 Likes